fix: hyprland config globbing error (source=~), dotfiles deploy stabilität (cp -aT, set -e fix), homelab AGS setup form
This commit is contained in:
@@ -28,7 +28,7 @@ with open('$OMERON_PROJECT_DIR/config/omeron.yaml') as f:
|
||||
data = yaml.safe_load(f)
|
||||
items = data.get('dotfiles', {}).get('items', [])
|
||||
print(' '.join(items))
|
||||
" 2>/dev/null)"
|
||||
" 2>/dev/null)" || true
|
||||
|
||||
if [[ -n "$raw_items" ]]; then
|
||||
read -ra config_items <<< "$raw_items"
|
||||
@@ -44,8 +44,10 @@ print(' '.join(items))
|
||||
return 0
|
||||
fi
|
||||
|
||||
backup_dir="$(backup_file "$HOME/.config/hypr" "$HOME/.dotfiles-backup/$(date +%Y%m%d-%H%M%S)")"
|
||||
backup_dir="$(dirname "$backup_dir" 2>/dev/null || printf '%s' "$HOME/.dotfiles-backup/$(date +%Y%m%d-%H%M%S)")"
|
||||
local backup_timestamp
|
||||
backup_timestamp="$(date +%Y%m%d-%H%M%S)"
|
||||
backup_file "$HOME/.config/hypr" "$HOME/.dotfiles-backup/$backup_timestamp" >/dev/null
|
||||
backup_dir="$HOME/.dotfiles-backup/$backup_timestamp"
|
||||
|
||||
for item in "${config_items[@]}"; do
|
||||
local source="$dotfiles_dir/$item"
|
||||
|
||||
Reference in New Issue
Block a user