Skip to content

Commit e2d43c7

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

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.docker/prepare-switch-scroll.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ 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
10-
echo "Already on $SCROLL. Nothing to do."
12+
echo "Already on $CURRENT_SCROLL. Nothing to do."
1113
fi

0 commit comments

Comments
 (0)