From 721946dc161fbf64e217bafd773af4a5a6d22805 Mon Sep 17 00:00:00 2001 From: ktyl Date: Mon, 17 Jan 2022 22:22:36 +0000 Subject: [PATCH] shellcheck --- .scripts/theme | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.scripts/theme b/.scripts/theme index 233b7c6..0a5c37a 100755 --- a/.scripts/theme +++ b/.scripts/theme @@ -9,13 +9,13 @@ if [ $# -eq 1 ]; then dir=$1 fi -file=`sxiv -o $dir` +file=$(sxiv -o "$dir") if [ $# -eq 1 ]; then - cp $file $bgdir/`basename $file` + cp "$file" "$bgdir"/"$(basename "$file")" fi # generate terminal colors with wal -wal -i $file +wal -i "$file" # move temporary files to config in case .cache gets nuked hee hoo cp "$cache/colors-kitty.conf" "$config/kitty/colors-kitty.conf" @@ -30,4 +30,4 @@ xrdb "$cache/colors.Xresources" #wpg -s $file -l # reload bspwm -$HOME/.config/bspwm/bspwmrc reload +"$HOME"/.config/bspwm/bspwmrc reload