Krolyxon
Commit 334eaef

Branches

Refs →

aurora334eaef

install.sh: refactoring

Author
krolxon
Date
2026-01-09 14:44 +0530
Parent
cdd7d03
Commit
334eaefdeb2b6e25c465803b62374d797dd6c713

+15 −11

3 files changed

  1. M .config/foot/foot.ini +1 −1
  2. M install.sh +14 −10
  3. M packages/pkg_gpu.sh +0 −0
M .config/foot/foot.ini View
@@ -1,7 +1,7 @@
11 include=~/.cache/wal/colors-foot.ini
22
33 [main]
4−font=JetBrains Mono Nerd Font:size=12
4+font=JetBrains Mono Nerd Font:size=11
55 # pad=15x15
66
77 [colors]
M install.sh View
@@ -5,6 +5,9 @@ trap 'log WARN "Interrupted by user"; exit 130' INT
55 INSTALL_STATUS="none" # none | partial | complete | failed
66 AUTO_YES=0
77
8+#######################
9+## Arguement Parsing ##
10+#######################
811 for arg in "$@"; do
912 case "$arg" in
1013 --yes|--ci|--non-interactive)
@@ -46,14 +49,6 @@ check_install() {
4649 fi
4750 }
4851
49−## Add checks for prerequisites
50−check_install git
51−check_install gum
52−check_install stow
53−
54−currentDir="$(dirname "$(readlink -f "$0")")"
55−cd "$currentDir"
56−
5752
5853 choose_packages() {
5954 local -n arr=$1
@@ -96,6 +91,15 @@ confirm() {
9691 ## GATEKEEPING ##
9792 #################
9893
94+## Add checks for prerequisites
95+check_install git
96+check_install gum
97+check_install stow
98+
99+currentDir="$(dirname "$(readlink -f "$0")")"
100+cd "$currentDir"
101+
102+
99103 DISCLAIMER=$(gum style \
100104 --border double \
101105 --border-foreground 196 \
@@ -230,7 +234,7 @@ Proceed with system configuration (stow, shell)?"; then
230234
231235 log INFO "Running stow..."
232236 stow . --no-folding \
233− && log INFO "✅ Dotfiles stowed with overwrite." \
237+ && log INFO "Dotfiles stowed with overwrite." \
234238 || log ERROR "Stow failed"
235239 fi
236240
@@ -246,7 +250,7 @@ Proceed with system configuration (stow, shell)?"; then
246250 log INFO "Skipping: zsh is already the default shell"
247251 fi
248252 else
249− log WARN "Aborted configuration, didn't configure anything"
253+ log ERROR "Aborted stow, didn't configure or install anything"
250254 exit 1
251255 fi
252256
M packages/pkg_gpu.sh View

Mode 100644 → 100755

[No content changes]