Verified Commit f167369e authored by Tommaso Tocci's avatar Tommaso Tocci
Browse files

bugfix: compile/download scripts exit code

compile/download scripts need to exit with positive error code on wrong parameters
parent a1fec389
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ set -- "${POSITIONAL[@]}" # restore positional parameters
if [[ ( -z ${1+x} ) || ( -z ${2+x} ) ]]; then
    echo "Positional arguments missing."
    usage_short
    exit
    exit 1
fi
SOURCE="$( readlink -f "${1}" )"
INSTALL="$( readlink -f "${2}" )"
+1 −1
Original line number Diff line number Diff line
@@ -130,7 +130,7 @@ set -- "${POSITIONAL[@]}" # restore positional parameters
if [[ -z ${1+x} ]]; then
    echo "Positional arguments missing."
    usage_short
    exit
    exit 1
fi
SOURCE="$( readlink -mn "${1}" )"