diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-19 13:58:28 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-19 13:58:28 +1300 |
commit | fec6664477b8836a9d020602f8ba15b65bec5659 (patch) | |
tree | 200ceca51b27822e23471f0e5ac1128007179f46 /ksh | |
parent | Move pwgen() wrapper into pwg(1df) (diff) | |
download | dotfiles-fec6664477b8836a9d020602f8ba15b65bec5659.tar.gz dotfiles-fec6664477b8836a9d020602f8ba15b65bec5659.zip |
Block a well-intended shellcheck error
Diffstat (limited to 'ksh')
-rw-r--r-- | ksh/shrc.d/ksh.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ksh/shrc.d/ksh.sh b/ksh/shrc.d/ksh.sh index 106c898f..8e33da7c 100644 --- a/ksh/shrc.d/ksh.sh +++ b/ksh/shrc.d/ksh.sh @@ -21,6 +21,7 @@ if [ -z "$KSH_VERSION" ] ; then # Test whether we have content in the .sh.version variable. Suppress errors # and run it in a subshell to work around parsing error precedence. + # shellcheck disable=SC2154 ( test -n "${.sh.version}" ) 2>/dev/null || return # If that peculiarly named variable was set, then that's our KSH_VERSION |