diff --git a/tools/dep_updaters/update-v8-patch.sh b/tools/dep_updaters/update-v8-patch.sh index 799bf769719..77080f86515 100755 --- a/tools/dep_updaters/update-v8-patch.sh +++ b/tools/dep_updaters/update-v8-patch.sh @@ -9,9 +9,9 @@ BASE_DIR=$(cd "$(dirname "$0")/../.." && pwd) cd "$BASE_DIR" -IS_UP_TO_DATE=$(git node v8 minor | grep "V8 is up-to-date") +CAN_UPDATE=$(git node v8 minor | grep -q "V8 is up-to-date" || echo "1") -if [ -n "$IS_UP_TO_DATE" ]; then +if [ -z "$CAN_UPDATE" ]; then echo "Skipped because V8 is on the latest version." exit 0 fi