summaryrefslogtreecommitdiff
path: root/include/lib.sh
diff options
context:
space:
mode:
Diffstat (limited to 'include/lib.sh')
-rwxr-xr-xinclude/lib.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/lib.sh b/include/lib.sh
index cac6b302..1e860794 100755
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -56,8 +56,7 @@ setcfg()
e()
{
- es_t="e"
- [ $# -gt 1 ] && es_t="$2"
+ es_t="e" && [ $# -gt 1 ] && es_t="$2"
es2="already exists"
estr="[ -$es_t \"\$1\" ] || return 1"
[ $# -gt 2 ] && estr="[ -$es_t \"\$1\" ] && return 1" && es2="missing"