We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
command
which
1 parent 4de4908 commit 93a0db2Copy full SHA for 93a0db2
action.yml
@@ -45,11 +45,11 @@ runs:
45
name: Make sure Swiftly's deps are available
46
shell: bash
47
run: |
48
- which curl >/dev/null 2>&1 || {
49
- if [[ -n "$(which apt-get)" ]]; then
+ command -v curl >/dev/null || {
+ if command -v apt-get >/dev/null; then
50
apt-get update -q
51
apt-get install -qy curl
52
- elif [[ -n "$(which yum)" ]]; then
+ elif command -v yum >/dev/null; then
53
yum install -y curl
54
else
55
echo "curl is not installed and we couldn't figure out how to install it."
0 commit comments