Skip to content

Commit

Permalink
local-mod-replace.sh: fix shebang (#1664)
Browse files Browse the repository at this point in the history
- Additionally double-quoted variable to prevent globbing and word splitting
  • Loading branch information
mlloreda authored Apr 14, 2022
1 parent 35519bd commit 26414ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions local-mod-replace.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#1/usr/bin/env bash
#!/usr/bin/env bash

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

if [ "$PROJECT_DIR" != "" ]; then
cd $PROJECT_DIR || exit
cd "$PROJECT_DIR" || exit
fi

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

0 comments on commit 26414ee

Please sign in to comment.