From 4edd46a8934448ed3913c9d4064e0288fe437f35 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 16 Sep 2026 22:49:15 +0500 Subject: maintenance.sh: simpler script directory detection --- scripts/maintenance.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scripts') 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() { -- cgit v1.3