diff options
Diffstat (limited to 'include/lib.sh')
-rwxr-xr-x | include/lib.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/lib.sh b/include/lib.sh index 5ae34818..b335ace3 100755 --- a/include/lib.sh +++ b/include/lib.sh @@ -201,10 +201,10 @@ e() { es_t="e" [ $# -gt 1 ] && es_t="$2" - es2="" + es2="already exists" estr="[ -$es_t \"\$1\" ] || return 1" - [ $# -gt 2 ] && estr="[ -$es_t \"\$1\" ] && return 1" && es2="not " + [ $# -gt 2 ] && estr="[ -$es_t \"\$1\" ] && return 1" && es2="not found" eval "$estr" - printf "%s %sfound\n" "$1" "$es2" 1>&2 + printf "%s %s\n" "$1" "$es2" 1>&2 } |