aboutsummaryrefslogtreecommitdiff
path: root/ksh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-22 15:39:11 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-22 15:39:11 +1300
commit2b0ffefe1acc34530bd35db47729dfb821f63071 (patch)
treeface32ad6a7d91ecf343a558304e370433befd68 /ksh
parent8ccb0bdabcdb5aa1394c3a5c4776b783f06e846a (diff)
downloaddotfiles-2b0ffefe1acc34530bd35db47729dfb821f63071.tar.gz
dotfiles-2b0ffefe1acc34530bd35db47729dfb821f63071.zip
Use more compatible check
Diffstat (limited to 'ksh')
-rw-r--r--ksh/kshrc.d/keep.ksh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ksh/kshrc.d/keep.ksh b/ksh/kshrc.d/keep.ksh
index 3c1ca199..c57c41ce 100644
--- a/ksh/kshrc.d/keep.ksh
+++ b/ksh/kshrc.d/keep.ksh
@@ -121,7 +121,7 @@ EOF
((errors++))
# Save a variable
- elif [[ -v "$name" ]] ; then
+ elif [[ -n "$name" ]] ; then
typeset -p -- "$name" >"$kshkeep"/"$name".ksh ||
((errors++))
fi