diff options
| author | Don Williams <don.e.williams@gmail.com> | 2026-01-30 08:07:08 -0500 |
|---|---|---|
| committer | Don Williams <don.e.williams@gmail.com> | 2026-01-30 08:07:08 -0500 |
| commit | 949fd81f3f6fe89b297261b9d3c839423d172ba5 (patch) | |
| tree | 07d478d3bee7c1305ae1be964594caf9b7441501 /copy.sh | |
| parent | c236929377350588d47bff1b510bfa7878bec290 (diff) | |
NixOS relative pathing wasn't working `cwd` issues
```
[OK] You have chosen < 1440p resolution.
sed: can't read config/kitty/kitty.conf: No such file or directory
[NOTE] By default, KooL's Dots are configured in 24H clock format.
[ACTION] Do you want to change to 12H (AM/PM) clock format? (y/n): y
sed: can't read config/waybar/Modules: No such file or directory
sed: can't read config/waybar/Modules: No such file or directory
sed: can't read config/waybar/Modules: No such file or directory
sed: can't read config/waybar/Modules: No such file or directory
sed: can't read config/waybar/Modules: No such file or directory
sed: can't read config/waybar/Modules: No such file or directory
sed: can't read config/waybar/Modules: No such file or directory
sed: can't read config/waybar/Modules: No such file or directory
sed: can't read config/waybar/Modules: No such file or directory
[WARN] hyprlock template not found; skipping 12H lock format edits
[NOTE] Express mode: skipping SDDM 12H edits to avoid sudo prompts.
[OK] 12H format set on waybar clocks succesfully.
[INFO] - copying dotfiles first part
cp: cannot stat 'config/fastfetch': No such file or directory
[OK] - Copy completed for fastfetch
[INFO] Found kitty config found in ~/.config/
[ACTION] Do you want to replace kitty config? (y/n): y
[NOTE] - Backed up kitty to /home/dwilliams/.config/kitty-backup-back-up_0130_0800.
cp: cannot stat 'config/kitty': No such file or directory
[OK] - Replaced kitty with new configuration.
[INFO] Found rofi config found in ~/.config/
[ACTION] Do you want to replace rofi config? (y/n): y
[NOTE] - Backed up rofi to /home/dwilliams/.config/rofi-backup-back-up_0130_0800.
cp: cannot stat 'config/rofi': No such file or directory
[OK] - Replaced rofi with new configuration.
```
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: copy.sh
modified: scripts/lib_apps.sh
modified: scripts/lib_copy.sh
modified: scripts/lib_prompts.sh
Diffstat (limited to 'copy.sh')
| -rwxr-xr-x | copy.sh | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -53,6 +53,8 @@ SKY_BLUE="$(tput setaf 6)" RESET="$(tput sgr0)" MIN_EXPRESS_VERSION="2.3.18" SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +DOTFILES_DIR="$SCRIPT_DIR" +export DOTFILES_DIR MENU_HELPER="$SCRIPT_DIR/scripts/copy_menu.sh" BACKUP_HELPER="$SCRIPT_DIR/scripts/lib_backup.sh" DETECT_HELPER="$SCRIPT_DIR/scripts/lib_detect.sh" @@ -107,6 +109,9 @@ else exit 1 fi +# Ensure we operate from the dotfiles root so relative paths resolve. +cd "$SCRIPT_DIR" || { echo "${ERROR} Failed to cd to $SCRIPT_DIR"; exit 1; } + version_gte() { [ "$1" = "$(echo -e "$1\n$2" | sort -V | tail -n1)" ] } |
