We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
command -v
which
1 parent 0a949aa commit 961ddadCopy full SHA for 961ddad
provisionersdk/agent.go
@@ -20,11 +20,11 @@ Start-Process -FilePath $env:TEMP\sshd.exe -ArgumentList "agent" -PassThru`
20
set -eux pipefail
21
BINARY_LOCATION=$(mktemp -d -t tmp.coderXXXXXX)/coder
22
BINARY_URL=${ACCESS_URL}bin/coder-linux-${ARCH}
23
-if which curl >/dev/null 2>&1; then
+if command -v curl >/dev/null 2>&1; then
24
curl -fsSL --compressed "${BINARY_URL}" -o "${BINARY_LOCATION}"
25
-elif which wget >/dev/null 2>&1; then
+elif command -v wget >/dev/null 2>&1; then
26
wget -q "${BINARY_URL}" -O "${BINARY_LOCATION}"
27
-elif which busybox >/dev/null 2>&1; then
+elif command -v busybox >/dev/null 2>&1; then
28
busybox wget -q "${BINARY_URL}" -O "${BINARY_LOCATION}"
29
else
30
echo "error: no download tool found, please install curl, wget or busybox wget"
0 commit comments