Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions multios-usb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,10 @@ esac
# Check for required software
[ "$fs_type" = "fat32" ] && fs_prog="mkfs.fat" || fs_prog="mkfs.$fs_type"
for cmd in dd tar xz sgdisk wipefs "$fs_prog"; do
# shellcheck disable=SC2086
if [ ! -x "$(command -v ${cmd} 2>/dev/null)" ]; then
echo "${cmd} is required but not installed. Exiting"
exit 1
fi
if [ ! -x "$(command -v "$cmd" 2>/dev/null)" ]; then
echo "$cmd is required but not installed. Exiting"
exit 1
fi
done

# Check for root
Expand Down