diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-01-24 04:54:51 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-01-24 04:54:51 +0800 |
| commit | e6e33ce5ceb0d790fdaaa97253acc77e98954aa6 (patch) | |
| tree | 309b84df293097bb216b68ce4a5d4775b299255a /scripts/make_lnk.sh | |
| parent | 71047354bf1fc7573627c9ec081aa8a734d1ced7 (diff) | |
Preserve original directory in make_lnk scripts
Diffstat (limited to 'scripts/make_lnk.sh')
| -rw-r--r-- | scripts/make_lnk.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/make_lnk.sh b/scripts/make_lnk.sh index 3b52b97..81a7dd5 100644 --- a/scripts/make_lnk.sh +++ b/scripts/make_lnk.sh @@ -1,5 +1,6 @@ #!/bin/bash script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +original_dir="$(pwd)" cd "$(dirname "$0")" || exit 1 deploy_sh="$script_dir/dev/deploy.sh" dev_deploy_sh="$script_dir/dev/dev_deploy.sh" @@ -20,3 +21,5 @@ if [ -f "$dev_deploy_sh" ]; then fi ln -s "$dev_deploy_sh" "$link_path" fi + +cd "$original_dir" || exit 1 |
