summaryrefslogtreecommitdiff
path: root/buildlive
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2016-08-08 16:38:21 +0800
committerIru Cai <mytbk920423@gmail.com>2016-08-08 16:38:21 +0800
commit5ab6b14925978bfb9c4f563b5c9f5cc9bf19d443 (patch)
treef5384d3c43f3fb8a4a9f4eb63c196b2052bc176e /buildlive
parentcf464558254ebaf20ffdefe8b5885c24b713f0d4 (diff)
downloadliveusb-builder-5ab6b14925978bfb9c4f563b5c9f5cc9bf19d443.tar.xz
print usage when --root not configured or no distros
Diffstat (limited to 'buildlive')
-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"