File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ Start-Process -FilePath $env:TEMP\sshd.exe -ArgumentList "agent" -PassThru`
20
20
set -eux pipefail
21
21
BINARY_LOCATION=$(mktemp -d -t tmp.coderXXXXXX)/coder
22
22
BINARY_URL=${ACCESS_URL}bin/coder-linux-${ARCH}
23
- if which curl >/dev/null 2>&1; then
23
+ if command -v curl >/dev/null 2>&1; then
24
24
curl -fsSL --compressed "${BINARY_URL}" -o "${BINARY_LOCATION}"
25
- elif which wget >/dev/null 2>&1; then
25
+ elif command -v wget >/dev/null 2>&1; then
26
26
wget -q "${BINARY_URL}" -O "${BINARY_LOCATION}"
27
- elif which busybox >/dev/null 2>&1; then
27
+ elif command -v busybox >/dev/null 2>&1; then
28
28
busybox wget -q "${BINARY_URL}" -O "${BINARY_LOCATION}"
29
29
else
30
30
echo "error: no download tool found, please install curl, wget or busybox wget"
You can’t perform that action at this time.
0 commit comments