Exit when TARGET is not specified

This commit is contained in:
Mark Vainomaa 2018-11-10 02:24:52 +02:00
parent 3baa648f45
commit 64e4dce061
Signed by: mikroskeem
GPG Key ID: 1B3F9523B542D315

View File

@ -5,6 +5,7 @@ set -e
TARGET="${1}" TARGET="${1}"
if [ -z "${TARGET}" ]; then if [ -z "${TARGET}" ]; then
echo "You must specify rootfs where packages should be unpacked" echo "You must specify rootfs where packages should be unpacked"
exit 1
fi fi
TARGET="$(realpath "${TARGET}")" TARGET="$(realpath "${TARGET}")"