Exit when TARGET is not specified

This commit is contained in:
2018-11-10 02:24:52 +02:00
parent 3baa648f45
commit 64e4dce061

View File

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