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 | 2bd9aed8067f46159c5c81d3bc6755b060707b11 (patch) | |
| tree | ce1a596af1ea27c2634a560af3c0ef899e053732 /scripts | |
| parent | scripts: add copyright notice (diff) | |
| download | wireguard-config-2bd9aed8067f46159c5c81d3bc6755b060707b11.tar.gz wireguard-config-2bd9aed8067f46159c5c81d3bc6755b060707b11.zip | |
maintenance.sh: simpler script directory detection
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/maintenance.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/maintenance.sh b/scripts/maintenance.sh index 702360b..c38e7ad 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() { |
