infra/dev: env_value defaults match compose, die helper, shared Gradle lock check; drop unused RCLONE_REMOTE and M2a leftovers; fix stale Pi compose path
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TQd3pEP9UeN2uifbHknQ7B
This commit is contained in:
@@ -10,11 +10,9 @@ src_root="${1:-$repo_root}"
|
||||
src="$src_root/infra/secrets/google-services.json"
|
||||
dst="$repo_root/android/app/google-services.json"
|
||||
|
||||
[[ -f "$src" ]] || { echo "copy-google-services.sh: $src not found (created by the M2c-dev Firebase setup)." >&2; exit 1; }
|
||||
git -C "$repo_root" check-ignore -q "android/app/google-services.json" || {
|
||||
echo "copy-google-services.sh: android/app/google-services.json is not git-ignored; refusing to copy." >&2
|
||||
exit 1
|
||||
}
|
||||
[[ -f "$src" ]] || die "$src not found (created by the M2c-dev Firebase setup, SPEC §10.7)."
|
||||
git -C "$repo_root" check-ignore -q "android/app/google-services.json" \
|
||||
|| die "android/app/google-services.json is not git-ignored; refusing to copy."
|
||||
mkdir -p "$(dirname "$dst")"
|
||||
cp "$src" "$dst"
|
||||
chmod 600 "$dst"
|
||||
|
||||
Reference in New Issue
Block a user