Improve message about deprecate install.sh and update.sh

This commit is contained in:
clsty
2025-10-26 21:54:28 +08:00
parent 5a846cdec5
commit ad01fdad4e
2 changed files with 37 additions and 3 deletions
+15 -3
View File
@@ -1,10 +1,22 @@
#!/usr/bin/env bash
# Remove this script (install.sh) after 2025.12.01
# TODO: Remove this script (install.sh) after 2025.12.01
STY_RED='\e[31m'
STY_RST='\e[00m'
printf "${STY_RED}You are using \"./install.sh\" which is kept for compatibility and will be removed in future.\n"
printf "Please use \"./setup install\" instead.${STY_RST}\n"
STY_INVERT='\e[7m'
printf "${STY_RED}"
printf "========================================================================\n"
printf "${STY_INVERT}"
printf "! ATTENTION !"
printf "${STY_RST}\n"
printf "${STY_RED}"
printf "You are using \"./install.sh\" which is kept for compatibility.\n"
printf "Please use \"./setup install\" instead.\n"
printf "The old \"./install.sh\" is planned to be removed after 2025.12.01.\n"
printf "========================================================================\n"
printf "${STY_RST}"
sleep 5
cd "$(dirname "$0")"
./setup install "$@"
Executable
+22
View File
@@ -0,0 +1,22 @@
#!/usr/bin/env bash
# TODO: Remove this script (update.sh) after 2025.12.01
STY_RED='\e[31m'
STY_RST='\e[00m'
STY_INVERT='\e[7m'
printf "${STY_RED}"
printf "========================================================================\n"
printf "${STY_INVERT}"
printf "! ATTENTION !"
printf "${STY_RST}\n"
printf "${STY_RED}"
printf "You are using \"./update.sh\" which is kept for compatibility.\n"
printf "Please use \"./setup exp-update-old\" or \"./setup exp-update\" instead.\n"
printf "The old \"./update.sh\" is planned to be removed after 2025.12.01.\n"
printf "========================================================================\n"
printf "${STY_RST}"
sleep 5
cd "$(dirname "$0")"
./setup exp-update-old "$@"