File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 7575done
7676
7777# Source common functions
78- SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
78+ SCRIPT_DIR=" $( CDPATH= " " cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
7979source " $SCRIPT_DIR /common.sh"
8080
8181# Get feature paths and validate branch
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ get_repo_root() {
77 git rev-parse --show-toplevel
88 else
99 # Fall back to script location for non-git repos
10- local script_dir=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
10+ local script_dir=" $( CDPATH= " " cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
1111 (cd " $script_dir /../../.." && pwd)
1212 fi
1313}
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ clean_branch_name() {
167167# Resolve repository root. Prefer git information when available, but fall back
168168# to searching for repository markers so the workflow still functions in repositories that
169169# were initialised with --no-git.
170- SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
170+ SCRIPT_DIR=" $( CDPATH= " " cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
171171
172172if git rev-parse --show-toplevel > /dev/null 2>&1 ; then
173173 REPO_ROOT=$( git rev-parse --show-toplevel)
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ for arg in "$@"; do
2424done
2525
2626# Get script directory and load common functions
27- SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
27+ SCRIPT_DIR=" $( CDPATH= " " cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
2828source " $SCRIPT_DIR /common.sh"
2929
3030# Get all paths and variables from common functions
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ set -o pipefail
4949# ==============================================================================
5050
5151# Get script directory and load common functions
52- SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
52+ SCRIPT_DIR=" $( CDPATH= " " cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
5353source " $SCRIPT_DIR /common.sh"
5454
5555# Get all paths and variables from common functions
You can’t perform that action at this time.
0 commit comments