File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 3
3
set -o errexit
4
4
set -o pipefail
5
5
6
- REPO_ROOT=$( dirname " ${BASH_SOURCE} " ) /..
6
+ # Resolve the absolute path of the directory containing the script
7
+ SCRIPT_DIR=$( realpath " $( dirname " ${BASH_SOURCE[0]} " ) " )
8
+ REPO_ROOT=" $SCRIPT_DIR /.."
7
9
8
10
cd $REPO_ROOT /hack/chart-update; go run . -release-tag=$1 ; cd -
Original file line number Diff line number Diff line change 3
3
set -o errexit
4
4
set -o pipefail
5
5
6
- REPO_ROOT=$( dirname " ${BASH_SOURCE} " ) /..
6
+ # Resolve the absolute path of the directory containing the script
7
+ SCRIPT_DIR=$( realpath " $( dirname " ${BASH_SOURCE[0]} " ) " )
8
+ REPO_ROOT=" $SCRIPT_DIR /.."
7
9
8
- docker run --rm -v $REPO_ROOT :/home/app ghcr.io/rajatjindal/krew-release-bot:v0.0.46 krew-release-bot template --tag $1 --template-file .krew.yaml > $REPO_ROOT /plugins/clusterctl-operator.yaml
10
+ docker run --rm -v " $REPO_ROOT " :/home/app ghcr.io/rajatjindal/krew-release-bot:v0.0.46 krew-release-bot template --tag " $1 " --template-file .krew.yaml > " $REPO_ROOT " /plugins/clusterctl-operator.yaml
You can’t perform that action at this time.
0 commit comments