Skip to content

Commit

Permalink
Fix various smaller shellcheck warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stablestud authored and Alexander Gottweis committed Aug 31, 2023
1 parent 7122464 commit 781cad7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions i3-battery-popup
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ while getopts 's:v:L:l:m:t:s:F:i:I:f:nND' opt; do
# if -D not specified this will log nothing
LOGFILE="${OPTARG}"
;;
f)
f)
FONT="${OPTARG}"
;;
:)
Expand Down Expand Up @@ -157,7 +157,7 @@ show_popup() {
}

show_nagbar(){
i3-msg "exec i3-nagbar -m \"${1}\" ${FONT:+-f '"${FONT}"'}"
i3-msg "exec i3-nagbar -m \"${1}\" ${FONT:+-f "'${FONT}'"}"
}

show_notify(){
Expand All @@ -172,6 +172,7 @@ show_notify(){
fi
fi
[[ -n $NOTIFY_ICON ]] && NOTIFY_OPT="-i ${NOTIFY_ICON}"
# shellcheck disable=SC2086
notify-send -u critical "${1}" ${NOTIFY_OPT}
}

Expand Down

0 comments on commit 781cad7

Please sign in to comment.