Skip to content

Commit 93a0db2

Browse files
authored
Use command instead of which to check for curl etc.
1 parent 4de4908 commit 93a0db2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

action.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ runs:
4545
name: Make sure Swiftly's deps are available
4646
shell: bash
4747
run: |
48-
which curl >/dev/null 2>&1 || {
49-
if [[ -n "$(which apt-get)" ]]; then
48+
command -v curl >/dev/null || {
49+
if command -v apt-get >/dev/null; then
5050
apt-get update -q
5151
apt-get install -qy curl
52-
elif [[ -n "$(which yum)" ]]; then
52+
elif command -v yum >/dev/null; then
5353
yum install -y curl
5454
else
5555
echo "curl is not installed and we couldn't figure out how to install it."

0 commit comments

Comments
 (0)