add check for "snapshot-BRANCH_SLUG" arg to update-all-qqq-deps.sh -- if given, then we look for branchy versions, else we use main versions [skip ci]

This commit is contained in:
2023-05-25 10:55:10 -05:00
parent 515e04ecfe
commit 5185758855
2 changed files with 10 additions and 3 deletions

View File

@ -13,9 +13,14 @@ fi
CURRENT_VERSION="$(cat $QQQ_DEV_TOOLS_DIR/CURRENT-SNAPSHOT-VERSION)"
MODULE_LIST_FILE=$QQQ_DEV_TOOLS_DIR/MODULE_LIST
getLatestSnapshotArg="-l"
if [[ "$1" == "snapshot-BRANCH_SLUG" ]]; then
getLatestSnapshotArg="-s"
fi
for module in $(cat $MODULE_LIST_FILE); do
echo "Updating $module..."
version=$(get-latest-snapshot.sh $module -l)
version=$(get-latest-snapshot.sh $module $getLatestSnapshotArg)
update-dep.sh $module $version -q
done