aboutsummaryrefslogtreecommitdiff
path: root/ksh/shrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-31 14:19:57 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-31 14:29:17 +1300
commit0c84989ca0b97ca1d075e7a304a407553e34381d (patch)
tree2188a585aef6ed345b1c575da6f63445baabf522 /ksh/shrc.d
parentAdd clarifying comment (diff)
downloaddotfiles-0c84989ca0b97ca1d075e7a304a407553e34381d.tar.gz
dotfiles-0c84989ca0b97ca1d075e7a304a407553e34381d.zip
Clarify control flow in shell scripts
Diffstat (limited to 'ksh/shrc.d')
-rw-r--r--ksh/shrc.d/ksh.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/ksh/shrc.d/ksh.sh b/ksh/shrc.d/ksh.sh
index 5ad14b9c..9e032756 100644
--- a/ksh/shrc.d/ksh.sh
+++ b/ksh/shrc.d/ksh.sh
@@ -29,4 +29,6 @@ if [ -z "$KSH_VERSION" ] ; then
fi
# If ENV_EXT isn't already set, set it
-[ -n "$ENV_EXT" ] || ENV_EXT=$HOME/.kshrc
+if [ -z "$ENV_EXT" ] ; then
+ ENV_EXT=$HOME/.kshrc
+fi