mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Merge pull request #412 from ggtools/master
Fixed SCRIPT_DIR computation when CDPATH is set.
This commit is contained in:
commit
56735fe2ec
@ -21,7 +21,7 @@ set -eu
|
||||
set -o pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
SCRIPT_DIR=$(cd $(dirname $0); pwd)
|
||||
SCRIPT_DIR=$(CDPATH="" cd $(dirname $0); pwd)
|
||||
|
||||
INSTANCE_PREFIX=$1
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
# exit on any error
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR=$(cd $(dirname $0); pwd)
|
||||
SCRIPT_DIR=$(CDPATH="" cd $(dirname $0); pwd)
|
||||
|
||||
source $SCRIPT_DIR/config.sh
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user