fix(install): split local declaration in wallpaper.sh (SC2155)
This commit is contained in:
parent
0e803e7366
commit
bffb3e11e4
1 changed files with 2 additions and 1 deletions
|
|
@ -64,7 +64,8 @@ write_hyprpaper_config() {
|
|||
|
||||
# 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
|
||||
local backup="$conf.pre-install.$(date +%s)"
|
||||
local backup
|
||||
backup="$conf.pre-install.$(date +%s)"
|
||||
cp "$conf" "$backup"
|
||||
info "Backed up existing hyprpaper.conf -> $backup"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue