Skip to content

Commit

Permalink
Fix lint SC2236
Browse files Browse the repository at this point in the history
  • Loading branch information
doekman committed Aug 16, 2022
1 parent d5d4534 commit fa735d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ok.sh
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ environment variables (for internal use):
read -r prompt_input
if [[ $prompt_input =~ $re_num_begin ]]; then
#save command to history first
if [ ! -z ${ZSH_VERSION+x} ]; then
if [ -n "${ZSH_VERSION+x}" ]; then
# The Zsh way to do it
builtin print -s "$args $prompt_input"
else
Expand Down Expand Up @@ -296,7 +296,7 @@ else
comment_align) if [[ $# -ge 2 ]]; then export _OK_COMMENT_ALIGN=$2; shift; else >&2 echo "the comment_align argument needs a number (0..3) as 2nd argument"; fi;;
verbose) export _OK_VERBOSE=2;;
quiet) export _OK_VERBOSE=0;;
auto_show) if [ ! -z ${ZSH_VERSION+x} ]; then
auto_show) if [ -n "${ZSH_VERSION+x}" ]; then
function _zsh_list_once {
ok list-once
}
Expand Down

0 comments on commit fa735d7

Please sign in to comment.