diff --git a/check-schema-diff.sh b/check-schema-diff.sh index 699785e..b6faad5 100755 --- a/check-schema-diff.sh +++ b/check-schema-diff.sh @@ -45,7 +45,17 @@ if ! unzip -q "$manager_zip" -d "$stage_dir"; then exit 1 fi -output=$(cd "$stage_dir" && bash manager-exec.sh diff-meta 2>&1) +# manager.zip's own build target (the webapp project's manager-zip, which +# zips "manager/**/*" out of its build dir) nests everything under one +# manager/ directory - manager-exec.sh, manager.conf, model/, and libs/ all +# live there, not at the zip's root. +if [ ! -f "$stage_dir/manager/manager-exec.sh" ]; then + echo "ERROR: $manager_zip didn't unzip to the expected manager/manager-exec.sh - has its layout changed?" >&2 + rm -rf "$stage_dir" + exit 1 +fi + +output=$(cd "$stage_dir/manager" && bash manager-exec.sh diff-meta 2>&1) status=$? echo "$output"