diff options
author | 2024-12-27 13:10:57 +0900 | |
---|---|---|
committer | 2024-12-27 13:10:57 +0900 | |
commit | 01cd016d6781493556dead6382f16b6fd62b8841 (patch) | |
tree | 979ce5fc6debb9cb84c6362e08e53d5d5161e1b8 /java/builder.go | |
parent | 8bb77bc8d2529e05430874b5fddfee30929a7445 (diff) |
Use test ([) instead of extended test ([[) in if statements
- Using extended test is not portable since some /bin/sh doesn't support it.
[ 4% 5228/128453 3h38m43s remaining] //external/javaparser:javaparser javac [linux_glibc common]
/bin/sh: 1: [[: not found
- Use "test" instead
Change-Id: Ic29eb8cd04b8d29b4b8ca8863a826b073c2d2d71
Diffstat (limited to 'java/builder.go')
-rw-r--r-- | java/builder.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/builder.go b/java/builder.go index 88058e09a..8d4d6af8a 100644 --- a/java/builder.go +++ b/java/builder.go @@ -56,7 +56,7 @@ var ( `$zipTemplate${config.SoongZipCmd} -jar -o $out.tmp -C $outDir -D $outDir && ` + `if ! cmp -s "$out.tmp" "$out"; then mv "$out.tmp" "$out"; fi && ` + `if ! cmp -s "$annoSrcJar.tmp" "$annoSrcJar"; then mv "$annoSrcJar.tmp" "$annoSrcJar"; fi && ` + - `if [[ -f "$out.pc_state.new" ]]; then mv "$out.pc_state.new" "$out.pc_state"; fi && ` + + `if [ -f "$out.pc_state.new" ]; then mv "$out.pc_state.new" "$out.pc_state"; fi && ` + `rm -rf "$srcJarDir" "$outDir"`, CommandDeps: []string{ "${config.FindInputDeltaCmd}", |