summaryrefslogtreecommitdiff
path: root/lb
diff options
context:
space:
mode:
Diffstat (limited to 'lb')
-rwxr-xr-xlb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lb b/lb
index d4bd908..85fb4df 100755
--- a/lb
+++ b/lb
@@ -6,10 +6,11 @@ source /etc/libretools.conf
command=$1; shift
-[[ ! -f ~/l/libre${command} ]] && {
+[[ ! -x ~/l/libre"${command}" ]] && {
error "Command not found"
+ exit 1
}
-~/l/libre${command} $@
+~/l/libre${command} "$@"
exit $?