Skip to content

Commit

Permalink
Make sure --upgrade results in a pip --upgrade (#812)
Browse files Browse the repository at this point in the history
  • Loading branch information
OrKoN authored Nov 12, 2024
1 parent ee07a90 commit a9e13a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#!/bin/bash
set -ex

if ! [ -x "$(command -v bikeshed)" ] || [ "$1" = "--upgrade" ]; then
if ! [ -x "$(command -v bikeshed)" ]; then
echo 'Installing bikeshed'
python3 -m pip install bikeshed
elif [ "$1" = "--upgrade" ]; then
echo 'Upgrading bikeshed'
python3 -m pip install --upgrade bikeshed
fi

bikeshed update
Expand Down

0 comments on commit a9e13a5

Please sign in to comment.