Skip to content

Commit 6c3fa2f

Browse files
tvainikaLaurentGoderre
authored andcommitted
Fix update.sh invocation with unknown variant
If update.sh was invoked with non-existing variant, it updated all variants. Change in_variants_to_update to return true always if second variant argument was not given, but not when given variant argument does not match to available variants.
1 parent 5f771fb commit 6c3fa2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function in_variants_to_update() {
9797
local variant=$1
9898

9999
if [ "${#update_variants[@]}" -eq 0 ]; then
100-
echo 0
100+
echo 1
101101
return
102102
fi
103103

0 commit comments

Comments
 (0)