We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f12880 commit ae932d6Copy full SHA for ae932d6
hack/gh-workflow-ci.sh
@@ -1,6 +1,6 @@
1
#!/usr/bin/env bash
2
# Helper script for GitHub Actions CI, used from e2e tests.
3
-set -eufo pipefail
+set -exufo pipefail
4
5
create_pac_github_app_secret() {
6
local app_private_key="${1}"
@@ -35,10 +35,10 @@ create_second_github_app_controller_on_ghe() {
35
local test_github_second_private_key="${2}"
36
local test_github_second_webhook_secret="${3}"
37
38
- if hash -v apt >/dev/null 2>&1; then
+ if [[ -n "$(type -p apt)" ]]; then
39
apt update &&
40
apt install -y python3-yaml
41
- elif hash -v dnf >/dev/null 2>&1; then
+ elif [[ -n "$(type -p dnf)" ]]; then
42
dnf install -y python3-pyyaml
43
else
44
# TODO(chmouel): setup a virtualenvironment instead
0 commit comments