diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-17 15:13:54 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-17 15:13:54 +1300 |
commit | 8ef8c5ec49d3722888d61084be2f06a9d8a17329 (patch) | |
tree | 683252cbfb7f333e11106534da8da4161997d570 /sh/shrc.d | |
parent | Adjust PS1-PS4 reset (diff) | |
download | dotfiles-8ef8c5ec49d3722888d61084be2f06a9d8a17329.tar.gz dotfiles-8ef8c5ec49d3722888d61084be2f06a9d8a17329.zip |
Follow ShellCheck's recommendation of -z over !-n
I think !-n is a little clearer, but -z is OK.
Diffstat (limited to 'sh/shrc.d')
-rw-r--r-- | sh/shrc.d/xd.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/shrc.d/xd.sh b/sh/shrc.d/xd.sh index 7c17adea..b26d88b3 100644 --- a/sh/shrc.d/xd.sh +++ b/sh/shrc.d/xd.sh @@ -8,7 +8,7 @@ xd() { fi # Complain if mark not actually set yet - if ! [ -n "$PMD" ] ; then + if [ -z "$PMD" ] ; then printf >&2 'gd(): Mark not set\n' return 1 fi |