#!/usr/bin/env bash # The theme's copies of the brand tokens match their home, Petrolyst/design/. Says "not run" in a lone clone of this repository. set -u HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" SOURCE="$HERE/../../../design" COPIES="$HERE/petrolyst/login/resources/css/brand" [ -d "$SOURCE" ] || { echo "not run: no Petrolyst/design/ next to this repository"; exit 0; } status=0 for pair in brand/07_UI_Tokens/petrolyst_tokens.css identity_layer/02_Tokens/product_identity_layer.css; do name="$(basename "$pair")" if cmp -s "$SOURCE/$pair" "$COPIES/$name"; then echo "same $name"; else echo "DIFFERS $name"; status=1; fi done exit $status