diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-27 02:29:18 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-27 02:29:18 +1300 |
commit | 3828a1ff720dd08823d91ef0fb237540f1754bea (patch) | |
tree | 447e627f51f547bcf89fd83edea9b8b0a2241799 /ksh/kshrc.d/prompt.ksh | |
parent | Realised easy win avoiding subshells (diff) | |
download | dotfiles-3828a1ff720dd08823d91ef0fb237540f1754bea.tar.gz dotfiles-3828a1ff720dd08823d91ef0fb237540f1754bea.zip |
Tell ShellCheck to ignore an error
ret actually is assigned, just not in any place ShellCheck could
reasonably be expected to find
Diffstat (limited to 'ksh/kshrc.d/prompt.ksh')
-rw-r--r-- | ksh/kshrc.d/prompt.ksh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ksh/kshrc.d/prompt.ksh b/ksh/kshrc.d/prompt.ksh index 4a58f46d..063f5210 100644 --- a/ksh/kshrc.d/prompt.ksh +++ b/ksh/kshrc.d/prompt.ksh @@ -186,6 +186,7 @@ function prompt { # Show return status of previous command in angle brackets, if not zero ret) + # shellcheck disable=SC2154 ((ret)) && printf '<%u>' "$ret" ;; |