From 8f1f671123c63a470f9ae3b571a65df4112f0036 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 28 Apr 2021 21:43:10 +0000 Subject: allow bin/*.sh be symlinked --- bin/update.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin/update.sh') diff --git a/bin/update.sh b/bin/update.sh index 6c9ab78..1b98e9f 100755 --- a/bin/update.sh +++ b/bin/update.sh @@ -25,8 +25,9 @@ set -o pipefail script_name="$( basename -- "${BASH_SOURCE[0]}" )" readonly script_name -script_dir="$( dirname -- "${BASH_SOURCE[0]}" )" -script_dir="$( cd -- "$script_dir" && pwd )" +script_path="$( realpath --canonicalize-existing -- "${BASH_SOURCE[0]}" )" +readonly script_path +script_dir="$( dirname -- "$script_path" )" readonly script_dir src_dir="$( cd -- "$script_dir/../src" && pwd )" readonly src_dir -- cgit v1.2.3