No more sleep 0
Comment on Discussion When sdata/dist-arch/ Changes / comment_on_discussion (push) Has been cancelled

This commit is contained in:
clsty
2026-05-29 13:46:40 +08:00
parent f5b2b7548d
commit 3cb611c04e
8 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -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}"
+1 -1
View File
@@ -50,7 +50,7 @@ fi
# Update System
case $SKIP_SYSUPDATE in
true) sleep 0 ;;
true) true ;;
*) v sudo dnf upgrade --refresh -y ;;
esac
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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}"
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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
+1 -1
View File
@@ -154,7 +154,7 @@ get_next_backup_number() {
# Run user preference wizard
case "$ask" in
false) sleep 0 ;;
false) true ;;
*) wizard_update_preferences ;;
esac
+6 -6
View File
@@ -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