2 parents cacf280 + 706a72c commit feee3b6Copy full SHA for feee3b6
1 file changed
action.yml
@@ -36,7 +36,7 @@ runs:
36
esac
37
38
os="${RUNNER_OS}"
39
- if [[ $os == "macOS" ]]; then
+ if [[ "$os" == "macOS" ]]; then
40
os="Darwin"
41
fi
42
@@ -50,16 +50,16 @@ runs:
50
out=crane.exe
51
52
53
- if [[ ! -z ${url} ]]; then
+ if [[ ! -z "${url}" ]]; then
54
echo "Installing crane for ${os} on ${arch}"
55
tmp=$(mktemp -d)
56
- cd ${tmp}
+ cd "${tmp}"
57
fname="go-containerregistry_${os}_${arch}.tar.gz"
58
curl -o "$fname" -fsSL --retry 5 --retry-delay 1 --retry-all-errors "${url}/${fname}"
59
- tar xzf "$fname" ${out}
60
- chmod +x ${tmp}/${out}
61
- PATH=${PATH}:${tmp}
62
- echo "${tmp}" >> $GITHUB_PATH
+ tar xzf "$fname" "${out}"
+ chmod +x "${tmp}/${out}"
+ PATH="${PATH}:${tmp}"
+ echo "${tmp}" >> "$GITHUB_PATH"
63
64
65
# NB: username doesn't seem to matter.
0 commit comments