Skip to content

Commit

Permalink
fix: provide default value for LESS (#72)
Browse files Browse the repository at this point in the history
* fix: provide default value for LESS

* fix: shfmt demands to use "${LESS-}"
  • Loading branch information
LangLangBart authored Sep 24, 2023
1 parent e86f676 commit 9a5bfaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gh-notify
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ select_notif() {
# '-F/--quit-if-one-screen' option. The screen will not stay open for small
# text files that fit on the entire screen. The easiest solution is to
# disable the 'LESS' variable and define common sense options.
[[ -n $LESS ]] && unset LESS
[[ -n ${LESS-} ]] && unset LESS
less_args=(
"--clear-screen" # painted from the top line down
"--LONG-PROMPT" # Long prompts ("Line X of Y")
Expand Down

0 comments on commit 9a5bfaf

Please sign in to comment.