fix(install): split local declaration in wallpaper.sh (SC2155)

This commit is contained in:
Claude 2026-06-09 15:33:03 +00:00
parent 0e803e7366
commit bffb3e11e4
No known key found for this signature in database

View file

@ -64,7 +64,8 @@ write_hyprpaper_config() {
# Back up any pre-existing non-empty config (unless it's already ours). # Back up any pre-existing non-empty config (unless it's already ours).
if [[ -s $conf ]] && ! grep -q '^# Generated by dotfiles install/lib/wallpaper.sh' "$conf"; then if [[ -s $conf ]] && ! grep -q '^# Generated by dotfiles install/lib/wallpaper.sh' "$conf"; then
local backup="$conf.pre-install.$(date +%s)" local backup
backup="$conf.pre-install.$(date +%s)"
cp "$conf" "$backup" cp "$conf" "$backup"
info "Backed up existing hyprpaper.conf -> $backup" info "Backed up existing hyprpaper.conf -> $backup"
fi fi