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
1 changed files with 1 additions and 0 deletions

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}")"