diff options
Diffstat (limited to 'src/parted-usb.sh')
-rwxr-xr-x | src/parted-usb.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parted-usb.sh b/src/parted-usb.sh index 05b776c..f8855d3 100755 --- a/src/parted-usb.sh +++ b/src/parted-usb.sh | |||
@@ -353,12 +353,14 @@ fi | |||
353 | 353 | ||
354 | default_target=boot-disk.img | 354 | default_target=boot-disk.img |
355 | 355 | ||
356 | USB=$(which usb || echo ./src/usb) | ||
357 | |||
356 | if [ "$1" ] | 358 | if [ "$1" ] |
357 | then | 359 | then |
358 | if [ "$1" = USB ] | 360 | if [ "$1" = USB ] |
359 | then | 361 | then |
360 | [ "$DO_BUILD" ] && arg= || arg=-n | 362 | [ "$DO_BUILD" ] && arg= || arg=-n |
361 | target=$(./src/usb.sh $arg) || exit 1 | 363 | target=$($USB $arg) || exit 1 |
362 | elif [ -f "$1" ] | 364 | elif [ -f "$1" ] |
363 | then | 365 | then |
364 | case "$1" in | 366 | case "$1" in |