summaryrefslogtreecommitdiffstats
path: root/watch-bz
diff options
context:
space:
mode:
Diffstat (limited to 'watch-bz')
-rwxr-xr-xwatch-bz7
1 files changed, 1 insertions, 6 deletions
diff --git a/watch-bz b/watch-bz
index bf0f5e0..c118d71 100755
--- a/watch-bz
+++ b/watch-bz
@@ -15,12 +15,7 @@
set -u
export LANG=C
-if [ "$(readlink "$0")" = "$0" ]; then
- HERE="$(dirname $0)"
-else
- HERE="$(dirname $(readlink -f "$0"))"
-
-fi
+HERE="$(dirname "$(readlink -f "$0")")"
BUGZILLA=$(which bugzilla 2>/dev/null)
BUGZILLA_ROOT=/usr