From a9e13a5e25ad55bc49a77eb8da6ac7669dfa06b0 Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Tue, 12 Nov 2024 09:46:58 +0100 Subject: [PATCH] Make sure --upgrade results in a pip --upgrade (#812) --- scripts/build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index a76f3fbb..041d96bf 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -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