diff --git a/sdata/dist-arch/install-deps.sh b/sdata/dist-arch/install-deps.sh index 4e28cf23b..3474b3c3e 100644 --- a/sdata/dist-arch/install-deps.sh +++ b/sdata/dist-arch/install-deps.sh @@ -54,7 +54,7 @@ v remove_deprecated_dependencies # Issue #363 case $SKIP_SYSUPDATE in - true) sleep 0;; + true) true;; *) v sudo pacman -Syu;; esac @@ -105,7 +105,7 @@ done ## Optional dependencies if pacman -Qs ^plasma-browser-integration$ ;then SKIP_PLASMAINTG=true;fi case $SKIP_PLASMAINTG in - true) sleep 0;; + true) true;; *) if $ask;then echo -e "${STY_YELLOW}[$0]: NOTE: The size of \"plasma-browser-integration\" is ~600 KiB, but if you don't yet have KDE on your system it'll pull an extra ~600MiB of packages.${STY_RST}" diff --git a/sdata/dist-fedora/install-deps.sh b/sdata/dist-fedora/install-deps.sh index 7e48410ca..ce4630e2f 100644 --- a/sdata/dist-fedora/install-deps.sh +++ b/sdata/dist-fedora/install-deps.sh @@ -50,7 +50,7 @@ fi # Update System case $SKIP_SYSUPDATE in - true) sleep 0 ;; + true) true ;; *) v sudo dnf upgrade --refresh -y ;; esac diff --git a/sdata/lib/dist-determine.sh b/sdata/lib/dist-determine.sh index e45d46bc3..af5486055 100644 --- a/sdata/lib/dist-determine.sh +++ b/sdata/lib/dist-determine.sh @@ -123,6 +123,6 @@ fi # http://stackoverflow.com/questions/45125516 export MACHINE_ARCH=$(uname -m) case "${MACHINE_ARCH}" in - "x86_64") sleep 0;; + "x86_64") true;; *) print_os_group_id_functions+=(print_os_group_id_architecture);; esac diff --git a/sdata/lib/functions.sh b/sdata/lib/functions.sh index faa608155..14bd4a4b3 100644 --- a/sdata/lib/functions.sh +++ b/sdata/lib/functions.sh @@ -3,7 +3,7 @@ # shellcheck shell=bash -function try { "$@" || sleep 0; } +function try { "$@" || true; } function v(){ echo -e "####################################################" echo -e "${STY_BLUE}[$0]: Next command:${STY_RST}" diff --git a/sdata/subcmd-install/0.greeting.sh b/sdata/subcmd-install/0.greeting.sh index a948e5f3c..949ec326e 100644 --- a/sdata/subcmd-install/0.greeting.sh +++ b/sdata/subcmd-install/0.greeting.sh @@ -31,7 +31,7 @@ printf "\n" pause case $ask in - false) sleep 0 ;; + false) true ;; *) printf "${STY_BLUE}" printf "${STY_BOLD}Do you want to confirm every time before a command executes?${STY_RST}\n" diff --git a/sdata/subcmd-install/1.deps-router.sh b/sdata/subcmd-install/1.deps-router.sh index dd6712518..d3c9d428a 100644 --- a/sdata/subcmd-install/1.deps-router.sh +++ b/sdata/subcmd-install/1.deps-router.sh @@ -96,7 +96,7 @@ elif [[ "$OS_GROUP_ID" =~ ^(arch|gentoo|fedora)$ ]]; then printf "${STY_RED}Still proceed?${STY_RST}\n" read -p "[y/N]: " p case "$p" in - [yY])sleep 0;; + [yY])true;; *)echo "Aborting...";exit 1;; esac fi diff --git a/sdata/subcmd-install/3.files-exp.sh b/sdata/subcmd-install/3.files-exp.sh index 94567af4c..0e486455c 100644 --- a/sdata/subcmd-install/3.files-exp.sh +++ b/sdata/subcmd-install/3.files-exp.sh @@ -154,7 +154,7 @@ get_next_backup_number() { # Run user preference wizard case "$ask" in - false) sleep 0 ;; + false) true ;; *) wizard_update_preferences ;; esac diff --git a/sdata/subcmd-install/3.files-legacy.sh b/sdata/subcmd-install/3.files-legacy.sh index eb04b4a0f..86900fc85 100644 --- a/sdata/subcmd-install/3.files-legacy.sh +++ b/sdata/subcmd-install/3.files-legacy.sh @@ -6,7 +6,7 @@ ##################################################################################### # MISC (For dots/.config/* but not quickshell, not fish, not Hyprland, not fontconfig) case "${SKIP_MISCCONF}" in - true) sleep 0;; + true) true;; *) for i in $(find dots/.config/ -mindepth 1 -maxdepth 1 ! -name 'quickshell' ! -name 'fish' ! -name 'hypr' ! -name 'fontconfig' -exec basename {} \;); do # i="dots/.config/$i" @@ -20,7 +20,7 @@ case "${SKIP_MISCCONF}" in esac case "${SKIP_QUICKSHELL}" in - true) sleep 0;; + true) true;; *) # Should overwriting the whole directory not only ~/.config/quickshell/ii/ cuz https://github.com/end-4/dots-hyprland/issues/2294#issuecomment-3448671064 install_dir__sync dots/.config/quickshell "$XDG_CONFIG_HOME"/quickshell @@ -28,14 +28,14 @@ case "${SKIP_QUICKSHELL}" in esac case "${SKIP_FISH}" in - true) sleep 0;; + true) true;; *) install_dir__sync_exclude dots/.config/fish "$XDG_CONFIG_HOME"/fish "conf.d" ;; esac case "${SKIP_FONTCONFIG}" in - true) sleep 0;; + true) true;; *) case "$FONTSET_DIR_NAME" in "") install_dir__sync dots/.config/fontconfig "$XDG_CONFIG_HOME"/fontconfig ;; @@ -45,7 +45,7 @@ esac # For Hyprland case "${SKIP_HYPRLAND}" in - true) sleep 0;; + true) true;; *) install_dir__sync dots/.config/hypr/hyprland "$XDG_CONFIG_HOME"/hypr/hyprland if [ -f "${XDG_CONFIG_HOME}/hypr/hyprland.conf" ]; then @@ -57,7 +57,7 @@ case "${SKIP_HYPRLAND}" in done for i in hyprland.lua ; do case "${SKIP_HYPRLAND_ENTRY}" in - true) sleep 0;; + true) true;; *) install_file "dots/.config/hypr/$i" "${XDG_CONFIG_HOME}/hypr/$i" ;; esac done