diff options
author | Iru Cai <mytbk920423@gmail.com> | 2016-08-08 16:38:21 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2016-08-08 16:38:21 +0800 |
commit | 5ab6b14925978bfb9c4f563b5c9f5cc9bf19d443 (patch) | |
tree | f5384d3c43f3fb8a4a9f4eb63c196b2052bc176e | |
parent | cf464558254ebaf20ffdefe8b5885c24b713f0d4 (diff) | |
download | liveusb-builder-5ab6b14925978bfb9c4f563b5c9f5cc9bf19d443.tar.xz |
print usage when --root not configured or no distros
-rwxr-xr-x | buildlive | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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" |