diff options
| author | krolxon <krolyxon@tutanota.com> | 2026-01-09 14:44:08 +0530 |
|---|---|---|
| committer | krolxon <krolyxon@tutanota.com> | 2026-01-09 14:44:08 +0530 |
| commit | 334eaefdeb2b6e25c465803b62374d797dd6c713 (patch) | |
| tree | 88fd8a08bfa6ddb8f6376aefc07b31fd8475bcc1 | |
| parent | cdd7d036c781ad9adb59653c5814893a7c62179c (diff) | |
install.sh: refactoring
| -rw-r--r-- | .config/foot/foot.ini | 2 | ||||
| -rwxr-xr-x | install.sh | 24 | ||||
| -rwxr-xr-x[-rw-r--r--] | packages/pkg_gpu.sh | 0 |
3 files changed, 15 insertions, 11 deletions
diff --git a/.config/foot/foot.ini b/.config/foot/foot.ini index 621461d..e103ad1 100644 --- a/.config/foot/foot.ini +++ b/.config/foot/foot.ini @@ -1,7 +1,7 @@ include=~/.cache/wal/colors-foot.ini [main] -font=JetBrains Mono Nerd Font:size=12 +font=JetBrains Mono Nerd Font:size=11 # pad=15x15 [colors] @@ -5,6 +5,9 @@ trap 'log WARN "Interrupted by user"; exit 130' INT INSTALL_STATUS="none" # none | partial | complete | failed AUTO_YES=0 +####################### +## Arguement Parsing ## +####################### for arg in "$@"; do case "$arg" in --yes|--ci|--non-interactive) @@ -46,14 +49,6 @@ check_install() { fi } -## Add checks for prerequisites -check_install git -check_install gum -check_install stow - -currentDir="$(dirname "$(readlink -f "$0")")" -cd "$currentDir" - choose_packages() { local -n arr=$1 @@ -96,6 +91,15 @@ confirm() { ## GATEKEEPING ## ################# +## Add checks for prerequisites +check_install git +check_install gum +check_install stow + +currentDir="$(dirname "$(readlink -f "$0")")" +cd "$currentDir" + + DISCLAIMER=$(gum style \ --border double \ --border-foreground 196 \ @@ -230,7 +234,7 @@ Proceed with system configuration (stow, shell)?"; then log INFO "Running stow..." stow . --no-folding \ - && log INFO "✅ Dotfiles stowed with overwrite." \ + && log INFO "Dotfiles stowed with overwrite." \ || log ERROR "Stow failed" fi @@ -246,7 +250,7 @@ Proceed with system configuration (stow, shell)?"; then log INFO "Skipping: zsh is already the default shell" fi else - log WARN "Aborted configuration, didn't configure anything" + log ERROR "Aborted stow, didn't configure or install anything" exit 1 fi diff --git a/packages/pkg_gpu.sh b/packages/pkg_gpu.sh index 2361d91..2361d91 100644..100755 --- a/packages/pkg_gpu.sh +++ b/packages/pkg_gpu.sh |
