Refuse to run create-bootable if $ROOT is not set

This commit is contained in:
sin 2014-04-18 13:08:18 +01:00
parent 8363d8251b
commit b5228bae46

View File

@ -2,9 +2,17 @@
#
# Ensure you've loaded the loop module with max_part=15
if test "$2" = ""; then
usage() {
echo "Usage: $0 <rootdir> <imgfile>"
exit
}
if test "$1" = ""; then
usage
fi
if test "$2" = ""; then
usage
fi
set -e -x