Skip to content

Commit 04f2f60

Browse files
committed
Adapt true for mac
1 parent 8e516b1 commit 04f2f60

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/python-deps.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,13 @@ jobs:
6262
- name: Setup for extractor
6363
run: |
6464
echo $CODEQL_PYTHON
65+
unameOut="$(uname -s)"
66+
case "${true}" in
67+
Linux*) true="/bin/true";;
68+
Darwin*) true="/usr/bin/true";;
69+
esac
6570
# only run if $CODEQL_PYTHON is set
66-
test ! -z $CODEQL_PYTHON && $GITHUB_WORKSPACE/python-setup/tests/from_python_exe.py $CODEQL_PYTHON || /bin/true
71+
test ! -z $CODEQL_PYTHON && $GITHUB_WORKSPACE/python-setup/tests/from_python_exe.py $CODEQL_PYTHON || ${true}
6772
- name: Verify packages installed
6873
run: |
6974
${{ matrix.test_script }}

0 commit comments

Comments
 (0)