Skip to content

Commit

Permalink
Fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
markphip committed May 14, 2024
1 parent 0814e3a commit afa1fc1
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/artifacts-helper/scripts/install-python-keyring.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
#!/bin/bash


cd /tmp
wget https://github.com/microsoft/codespace-features/releases/download/latest/codespaces_artifacts_helper_keyring-0.1.0-py3-none-any.whl
if command -v pip3 &> /dev/null then
pip3 install codespaces_artifacts_helper_keyring-0.1.0-py3-none-any.whl
elif command -v pip &> /dev/null then
pip install codespaces_artifacts_helper_keyring-0.1.0-py3-none-any.whl
elif python3 -m pip &> /dev/null then
if python3 -m pip &> /dev/null; then
python3 -m pip install codespaces_artifacts_helper_keyring-0.1.0-py3-none-any.whl
elif python -m pip &> /dev/null then
elif command -v pip3 &> /dev/null; then
pip3 install codespaces_artifacts_helper_keyring-0.1.0-py3-none-any.whl
elif python -m pip &> /dev/null; then
python -m pip install codespaces_artifacts_helper_keyring-0.1.0-py3-none-any.whl
elif command -v pip &> /dev/null; then
pip install codespaces_artifacts_helper_keyring-0.1.0-py3-none-any.whl
else
echo "pip installation not detected. Artifacts Helper keyring not installed."
exit 1
Expand Down

0 comments on commit afa1fc1

Please sign in to comment.