From ad01fdad4e0b4a4323619275534f4dd791f97955 Mon Sep 17 00:00:00 2001 From: clsty Date: Sun, 26 Oct 2025 21:54:28 +0800 Subject: [PATCH] Improve message about deprecate install.sh and update.sh --- install.sh | 18 +++++++++++++++--- update.sh | 22 ++++++++++++++++++++++ 2 files changed, 37 insertions(+), 3 deletions(-) create mode 100755 update.sh diff --git a/install.sh b/install.sh index 7186dd32f..c2fda5569 100755 --- a/install.sh +++ b/install.sh @@ -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 "$@" diff --git a/update.sh b/update.sh new file mode 100755 index 000000000..6a4cb2e42 --- /dev/null +++ b/update.sh @@ -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 "$@"