Skip to content

Commit 26414ee

Browse files
authored
local-mod-replace.sh: fix shebang (#1664)
- Additionally double-quoted variable to prevent globbing and word splitting
1 parent 35519bd commit 26414ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

local-mod-replace.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#1/usr/bin/env bash
1+
#!/usr/bin/env bash
22

33
PROJECT_DIR=""
44
SDK_SOURCE_DIR=$(cd `dirname $0` && pwd)
@@ -30,7 +30,7 @@ while getopts "hs:d:" options; do
3030
done
3131

3232
if [ "$PROJECT_DIR" != "" ]; then
33-
cd $PROJECT_DIR || exit
33+
cd "$PROJECT_DIR" || exit
3434
fi
3535

3636
go mod graph | awk '{print $1}' | cut -d '@' -f 1 | sort | uniq | grep "github.com/aws/aws-sdk-go-v2" | while read x; do

0 commit comments

Comments
 (0)