aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-09-16 22:49:15 +0500
committerEgor Tensin <egor@tensin.name>2026-09-16 22:49:15 +0500
commit4edd46a8934448ed3913c9d4064e0288fe437f35 (patch)
treee5533cf607badc70345f4f425fbf8780ad07271c /scripts
parentscripts: add copyright notice (diff)
downloadsorting-algorithms-4edd46a8934448ed3913c9d4064e0288fe437f35.tar.gz
sorting-algorithms-4edd46a8934448ed3913c9d4064e0288fe437f35.zip
maintenance.sh: simpler script directory detection
Diffstat (limited to '')
-rwxr-xr-xscripts/maintenance.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/maintenance.sh b/scripts/maintenance.sh
index dd6a84c..2138497 100755
--- a/scripts/maintenance.sh
+++ b/scripts/maintenance.sh
@@ -8,9 +8,8 @@
set -o errexit -o nounset -o pipefail
shopt -s inherit_errexit lastpipe
-script_path="$( readlink --canonicalize-existing -- "${BASH_SOURCE[0]}" )"
-readonly script_path
-script_dir="$( dirname -- "$script_path" )"
+script_dir="$( dirname -- "${BASH_SOURCE[0]}" )"
+script_dir="$( cd -- "$script_dir" && pwd )"
readonly script_dir
update_gems() {