Fix broken sdk build (/bin/sh: 1: [[: not found) am: 0a0ea26c60 am: 9ecf7d0a5e

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2880857

Change-Id: I7f63d55185dfd409617360cfc4e072cd0beddf94
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Mårten Kongstad
2023-12-19 09:50:10 +00:00
committed by Automerger Merge Worker

View File

@@ -78,7 +78,7 @@ var (
blueprint.RuleParams{ blueprint.RuleParams{
Command: `rm -rf ${out}.tmp` + Command: `rm -rf ${out}.tmp` +
`&& for cache in ${cache_files}; do ` + `&& for cache in ${cache_files}; do ` +
` if [[ -n "$$(${aconfig} dump --cache $$cache --filter=is_exported:true --format='{fully_qualified_name}')" ]]; then ` + ` if [ -n "$$(${aconfig} dump --cache $$cache --filter=is_exported:true --format='{fully_qualified_name}')" ]; then ` +
` ${aconfig} create-java-lib --cache $$cache --mode=exported --out ${out}.tmp; ` + ` ${aconfig} create-java-lib --cache $$cache --mode=exported --out ${out}.tmp; ` +
` fi ` + ` fi ` +
`done` + `done` +