summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-04-19 15:33:49 +0200
committerJan Pokorný <jpokorny@redhat.com>2013-04-19 15:33:49 +0200
commit3dc78a363e38badf4d8304789f95f23f1ed84c2b (patch)
treef59f9ca91edd5e1d015e01fbcf875abd60b55ebe
parent2c32d5136afae4922f665324a68d2910429544e3 (diff)
downloadwatch-bz-3dc78a363e38badf4d8304789f95f23f1ed84c2b.tar.gz
watch-bz-3dc78a363e38badf4d8304789f95f23f1ed84c2b.tar.xz
watch-bz-3dc78a363e38badf4d8304789f95f23f1ed84c2b.zip
simplify previous commit, conditionals not required
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-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