Skip to content

Commit 875d9e3

Browse files
authored
Merge pull request #6532 from oscr/rm-ignore-nonexistent-files
🌱 Silence error in go_install.sh when trying to remove nonexisting files
2 parents 5826909 + 4c79059 commit 875d9e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/go_install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if [ -z "${GOBIN}" ]; then
3737
exit 1
3838
fi
3939

40-
rm "${GOBIN}/${2}"* || true
40+
rm -f "${GOBIN}/${2}"* || true
4141

4242
# install the golang module specified as the first argument
4343
go install "${1}@${3}"

0 commit comments

Comments
 (0)