aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-03-22 13:44:01 +0100
committerPatrick Spek <p.spek@tyil.nl>2020-03-22 13:44:01 +0100
commit1548063b6ac54affecccc19872b1ffeed64f0887 (patch)
tree645d7ec3faeff40be96172b134023510334b5b6a /bin
parente335ffb41f7d65f369a8e4170affcd8d68a40be2 (diff)
Work out (most?) issues reported by shellcheck
Diffstat (limited to 'bin')
-rwxr-xr-xbin/rstar4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/rstar b/bin/rstar
index 1049cd9..27c71ca 100755
--- a/bin/rstar
+++ b/bin/rstar
@@ -1,6 +1,8 @@
#!/bin/sh
-export BASEDIR=$(CDPATH="" cd -- "$(dirname -- "$0")/.." && pwd -P)
+BASEDIR="$(CDPATH="" cd -- "$(dirname -- "$0")/.." && pwd -P)"
+
+export BASEDIR
main() {
if ! command -v bash > /dev/null