Add arguments check.

This commit is contained in:
Mateusz Hromada 2017-07-21 14:03:20 +02:00
parent 685859312a
commit 9e11fcaab3

View File

@ -2,6 +2,11 @@
TARGET=$1
if [ -z "${TARGET}" ]; then
echo "Usage: $0 <work_dir>"
exit 255
fi
mkdir ${TARGET}
mkdir ${TARGET}/ramdisk
mkdir ${TARGET}/firmware