commit e491516

hovercats  ·  2023-11-28 20:40:47 +0000 UTC
parent a2e1294
focus: fix shellcheck with printf usage
1 files changed,  +2, -2
+2, -2
 1@@ -11,7 +11,7 @@ INACTIVE=${INACTIVE:-0x333333} # inactive border color
 2 CUR=$(pfw)
 3 
 4 usage() {
 5-    printf "usage: $(basename "$0") <next|prev|wid>\n"
 6+    printf "usage: $(basename "$0") <next|prev|wid>\n" "%s"
 7     exit 1
 8 }
 9 
10@@ -38,7 +38,7 @@ case $1 in
11 esac
12 
13 # exit if we can't find another window to focus
14-[ -z "$wid" ] && printf "$(basename "$0"): can't find a window to focus\n" >&2 && exit 1
15+[ -z "$wid" ] && printf "$(basename "$0"): can't find a window to focus\n" "%s" >&2 && exit 1
16 
17 setborder inactive "$CUR" # set inactive border on current window
18 setborder active "$wid"   # activate the new window