Add pause(); distro specific also for setups

This commit is contained in:
clsty
2025-10-02 07:13:51 +08:00
parent 34c9cbeedb
commit 3a888f9be4
9 changed files with 170 additions and 34 deletions
+3
View File
@@ -63,6 +63,9 @@ function showfun(){
type -a $1
printf "${STY_RESET}"
}
function pause(){
if [ ! "$ask" == "false" ];then printf "${STY_FAINT}${STY_SLANT}";read -p "(Ctrl-C to abort, others to proceed)" p;printf "${STY_RESET}";fi
}
function remove_bashcomments_emptylines(){
mkdir -p $(dirname $2)
cat $1 | sed -e '/^[[:blank:]]*#/d;s/#.*//' -e '/^[[:space:]]*$/d' > $2