From 10095af47126071a9def7bb38cb94908478c9f72 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Sat, 4 Feb 2017 20:06:52 -0800 Subject: [PATCH] slighly more robust initial cd --- get-wiki-snapshot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get-wiki-snapshot b/get-wiki-snapshot index b89bafa..07e5a5e 100755 --- a/get-wiki-snapshot +++ b/get-wiki-snapshot @@ -7,7 +7,7 @@ trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR # usage: get-wiki-snapshot [-l] # -l means generate script from local guide, don't download new one. -cd "${BASH_SOURCE%/*}" +x="$(readlink -f "$BASH_SOURCE")"; cd ${x%/*} script_file=mw-setup-script -- 2.30.2