From fcc7c9dce8410bb14d9fe546d66010a01eee365e Mon Sep 17 00:00:00 2001 From: David Phillips Date: Mon, 19 Sep 2016 11:14:37 +1200 Subject: Allow running of wrapper script from outside its direectory --- extra/burning-ship-lattice-gen.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 $@ -- cgit v1.1