summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuildlive5
1 files changed, 5 insertions, 0 deletions
diff --git a/buildlive b/buildlive
index 1c87087..d5743ed 100755
--- a/buildlive
+++ b/buildlive
@@ -60,6 +60,11 @@ do
shift
done
+if [[ "${#DISTROLIST[@]}" == 0 || -z "$ROOTPATH" ]]; then
+ usage
+ exit 1
+fi
+
install -d "$ROOTPATH/grub"
echo "uuid=$UUID" > "$GRUBCFG"