1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-12 15:09:28 +00:00

🎨 update help

This commit is contained in:
Tw93
2025-09-25 21:09:10 +08:00
parent 0a14f1fb8b
commit 23f304dd22

8
mole
View File

@@ -22,7 +22,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$SCRIPT_DIR/lib/common.sh" source "$SCRIPT_DIR/lib/common.sh"
# Version info # Version info
VERSION="2.0.0" VERSION="1.0.0"
show_help() { show_help() {
cat << EOF cat << EOF
@@ -112,9 +112,7 @@ interactive_main_menu() {
;; ;;
3) 3)
show_help show_help
echo "" exit 0
read -p "Press any key to continue..." -n 1 -r
echo # Add newline after key press
;; ;;
4) 4)
echo "" echo ""
@@ -132,7 +130,7 @@ interactive_main_menu() {
case $key in case $key in
1) exec "$SCRIPT_DIR/bin/clean.sh" ;; 1) exec "$SCRIPT_DIR/bin/clean.sh" ;;
2) exec "$SCRIPT_DIR/bin/uninstall.sh" ;; 2) exec "$SCRIPT_DIR/bin/uninstall.sh" ;;
3) show_help; read -p "Press any key to continue..." -n 1 -r; echo ;; 3) show_help; exit 0 ;;
4) echo ""; echo "Thank you for using Mole!"; exit 0 ;; 4) echo ""; echo "Thank you for using Mole!"; exit 0 ;;
esac esac
;; ;;