diff options
| author | Egor Tensin <egor@tensin.name> | 2026-09-16 22:49:15 +0500 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-09-16 22:49:15 +0500 |
| commit | 729d68fe069d1208b3ea3c6faa67643cb330b3df (patch) | |
| tree | 6cd31b5f0c6850c4af636b16af989e6ae8a3a380 /.github/maintenance.sh | |
| parent | scripts: add copyright notice (diff) | |
| download | jekyll-theme-729d68fe069d1208b3ea3c6faa67643cb330b3df.tar.gz jekyll-theme-729d68fe069d1208b3ea3c6faa67643cb330b3df.zip | |
maintenance.sh: simpler script directory detection
Diffstat (limited to '.github/maintenance.sh')
| -rwxr-xr-x | .github/maintenance.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/.github/maintenance.sh b/.github/maintenance.sh index 36a36dc..9fb97ae 100755 --- a/.github/maintenance.sh +++ b/.github/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() { |
