From d5f998ee8f633a45f7f007e9ef2758b12f189421 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sat, 11 May 2024 21:30:47 -0300 Subject: [PATCH] erase: simplify UI --- libexec/sourcezap/sourcezap-erase | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libexec/sourcezap/sourcezap-erase b/libexec/sourcezap/sourcezap-erase index 23e539d..9de552b 100644 --- a/libexec/sourcezap/sourcezap-erase +++ b/libexec/sourcezap/sourcezap-erase @@ -25,11 +25,10 @@ erase() ## # main if [ "$(id -u)" != "0" ]; then - echo "[-] This command must be run by root" + echo "[x] This command must be run by root" exit 1 fi -printf "Choose an option:\n" printf "1 Erase %s\n" "${gitdir}" printf "2 Erase %s\n" "${installdir}" printf "3 Erase both (%s and %s)\n" "${gitdir}" "${installdir}" @@ -48,10 +47,9 @@ while true; do erase "${installdir}" exit elif [ "${r}" = "4" ]; then - printf "[-] Exiting... \n" exit else - printf "[x] %s is not a valid option.\n" "${r}" + printf "%s is not a valid option\n" "${r}" printf "1-4: " fi done