X-Git-Url: https://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=grml2iso;h=e84e2674cfd6f013e8cc9d989a4d2c63a1078ba6;hp=0addfb74665c605178d606e47a5483a713c8982b;hb=26cf6332b95355d58220e8541cf8de896ce60c67;hpb=7705455fc160164747fbbd44343fb6e3c833d45a diff --git a/grml2iso b/grml2iso index 0addfb7..e84e267 100755 --- a/grml2iso +++ b/grml2iso @@ -86,12 +86,12 @@ Options: case $name in o) ISOFILE="$OPTARG";; b) GRML2USB_OPTS+=(--bootoptions="$OPTARG");; - c) DIR="$(readlink -f "$OPTARG")";; + c) DIR="$(readlink -f "$OPTARG")"; [ -n "$DIR" ] || { echo "Could not read $OPTARG - exiting" >&2 ; exit 1 ; } ;; f) FORCE='true';; r) GRML2USB_OPTS+=(--remove-bootoption="$OPTARG");; p) GRML2USB_OPTS+=("$OPTARG");; s) URI="$OPTARG";; - t) WRKDIR="$OPTARG";; + t) WRKDIR="$(readlink -f "$OPTARG")";; ?) usage 2;; esac done @@ -129,7 +129,8 @@ Options: # check for grml2usb {{{ if [ ! -x "$(which $GRML2USB)" ] && [ ! -x "$GRML2USB" ] ; then - echo >&2 "Error: Could not find grml2usb" + echo "Error: Could not find grml2usb executable. Is /usr/sbin missing in PATH?" >&2 + echo "Tip: run GRML2USB=/usr/sbin/grml2usb grml2iso ... as workaround" >&2 if [ -x "./$GRML2USB" ] ; then echo >&2 "If you executed grml2iso from the grml2usb repository use" echo >&2 "GRML2USB=./grml2usb $0 $*"