mirror of
https://github.com/sickcodes/osx-serial-generator.git
synced 2024-12-28 02:16:12 +00:00
Typo and shellchecked
This commit is contained in:
parent
95230aab43
commit
296797f53a
|
@ -94,11 +94,8 @@ fish() {
|
||||||
}
|
}
|
||||||
|
|
||||||
fish_init() {
|
fish_init() {
|
||||||
local format
|
# local format
|
||||||
|
|
||||||
FILETYPE="$(file "${IMAGE}")"
|
|
||||||
|
|
||||||
# case "${IMAGE##*.}" in
|
|
||||||
case "$(file --brief "${IMAGE}")" in
|
case "$(file --brief "${IMAGE}")" in
|
||||||
QEMU\ QCOW2\ Image* ) export FORMAT=qcow2
|
QEMU\ QCOW2\ Image* ) export FORMAT=qcow2
|
||||||
;;
|
;;
|
||||||
|
@ -147,10 +144,10 @@ cp -a "${BASE}/EFI" "${WORK}"
|
||||||
|
|
||||||
export LIBGUESTFS_BACKEND=direct
|
export LIBGUESTFS_BACKEND=direct
|
||||||
unset GUESTFISH_PID
|
unset GUESTFISH_PID
|
||||||
source <(guestfish --listen)
|
source <(guestfish --listen || exit 1)
|
||||||
|
|
||||||
if [[ -z "$GUESTFISH_PID" ]];
|
if [[ -z "${GUESTFISH_PID}" ]]; then
|
||||||
echo "ERROR: starting guestfish failed"
|
echo "ERROR: starting guestfish failed. Install libguestfs-tools"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue