Skip to content

Commit 7a1dc70

Browse files
committed
chore: adjust prepare-switch-scroll script
1 parent 8cd058c commit 7a1dc70

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.docker/prepare-switch-scroll.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ CURRENT_SCROLL=$(cat $SCROLL_DIR/scroll.yaml | yq .name)
33

44
echo "Current scroll: $CURRENT_SCROLL"
55

6-
if [ "$CURRENT_SCROLL" != "$SCROLL" ]; then
7-
druid run switch-scroll $SCROLL
6+
DESIRED_SCROLL="$SCROLL@$SCROLL_VERSION"
7+
8+
if [ "$CURRENT_SCROLL" != "$DESIRED_SCROLL" ]; then
9+
druid run switch-scroll $DESIRED_SCROLL
810
rm $SCROLL_DIR/scroll-lock.json
911
else
1012
echo "Already on $SCROLL. Nothing to do."

0 commit comments

Comments
 (0)