aboutsummaryrefslogtreecommitdiff
path: root/libexec/app-grep-path
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/app-grep-path')
-rwxr-xr-xlibexec/app-grep-path12
1 files changed, 6 insertions, 6 deletions
diff --git a/libexec/app-grep-path b/libexec/app-grep-path
index f5e8287..fa6e5e5 100755
--- a/libexec/app-grep-path
+++ b/libexec/app-grep-path
@@ -1,13 +1,13 @@
#!/bin/bash
-# A command line wrapper around get grep_path function
+set -e
+set -u
-if [[ $APPSH_HOME == "" ]]
-then
- APPSH_HOME=`dirname "$0"`
- APPSH_HOME=`cd "$APPSH_HOME/.." && pwd`
-fi
+APPSH_HOME=$(cd $(dirname "$0")/.. && pwd)
. $APPSH_HOME/lib/common
+# HEADER END
+
+# A command line wrapper around get grep_path function
grep_path "$1" "$2"