Skip to content

Commit

Permalink
fix: volumes 判断的小问题
Browse files Browse the repository at this point in the history
  • Loading branch information
icyleaf committed Mar 14, 2024
1 parent c6ceaaa commit c2bfed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/configure-volumes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ choose_volumes () {
}


VOLUMES_EXISTS=$(grep -cE "^(\s+)zealot\-(\w+):" $DOCKER_COMPOSE_FILE || echo 0)
VOLUMES_EXISTS=$(grep -qcE "^(\s+)zealot\-(\w+):" $DOCKER_COMPOSE_FILE || echo 0)
if [ "$VOLUMES_EXISTS" -eq 4 ]; then
echo "Volumes already exists, skipped"
else
Expand Down

0 comments on commit c2bfed7

Please sign in to comment.