erase: simplify UI
This commit is contained in:
parent
19db805821
commit
d5f998ee8f
1 changed files with 2 additions and 4 deletions
|
@ -25,11 +25,10 @@ erase()
|
||||||
##
|
##
|
||||||
# main
|
# main
|
||||||
if [ "$(id -u)" != "0" ]; then
|
if [ "$(id -u)" != "0" ]; then
|
||||||
echo "[-] This command must be run by root"
|
echo "[x] This command must be run by root"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "Choose an option:\n"
|
|
||||||
printf "1 Erase %s\n" "${gitdir}"
|
printf "1 Erase %s\n" "${gitdir}"
|
||||||
printf "2 Erase %s\n" "${installdir}"
|
printf "2 Erase %s\n" "${installdir}"
|
||||||
printf "3 Erase both (%s and %s)\n" "${gitdir}" "${installdir}"
|
printf "3 Erase both (%s and %s)\n" "${gitdir}" "${installdir}"
|
||||||
|
@ -48,10 +47,9 @@ while true; do
|
||||||
erase "${installdir}"
|
erase "${installdir}"
|
||||||
exit
|
exit
|
||||||
elif [ "${r}" = "4" ]; then
|
elif [ "${r}" = "4" ]; then
|
||||||
printf "[-] Exiting... \n"
|
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
printf "[x] %s is not a valid option.\n" "${r}"
|
printf "%s is not a valid option\n" "${r}"
|
||||||
printf "1-4: "
|
printf "1-4: "
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue