aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2016-09-19 11:14:37 +1200
committerDavid Phillips <dbphillipsnz@gmail.com>2016-09-19 11:14:37 +1200
commitfcc7c9dce8410bb14d9fe546d66010a01eee365e (patch)
treef932958a6799afff6cf9a1799c5872f0f066848a
parent45765795c2c50f85d79b0cd492ede26af79b774d (diff)
downloadfractal-gen-fcc7c9dce8410bb14d9fe546d66010a01eee365e.tar.xz
Allow running of wrapper script from outside its direectory
-rwxr-xr-xextra/burning-ship-lattice-gen.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/extra/burning-ship-lattice-gen.sh b/extra/burning-ship-lattice-gen.sh
index 68f483e..0cb66a1 100755
--- a/extra/burning-ship-lattice-gen.sh
+++ b/extra/burning-ship-lattice-gen.sh
@@ -1,3 +1,5 @@
#!/bin/sh
-exec ../burning-ship-gen -x -1.755 -y -0.037 -z 0.09 $@
+ourdir="$(dirname $0)"
+
+exec "${ourdir}/../burning-ship-gen" -x -1.755 -y -0.037 -z 0.09 $@