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
commit146102ba2da95e9341cc63daebfaf61de7e30607 (patch)
tree61d997701fc647e1c35a59fd8ef2e2d9b014c84e /scripts
parentscripts: add copyright notice (diff)
downloadblog-146102ba2da95e9341cc63daebfaf61de7e30607.tar.gz
blog-146102ba2da95e9341cc63daebfaf61de7e30607.zip
maintenance.sh: simpler script directory detection
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/maintenance.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/maintenance.sh b/scripts/maintenance.sh
index e4e5d27..0c4eae4 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() {