Skip to content

Commit bd520da

Browse files
committed
Fix using runCommand for empty output
1 parent daa6431 commit bd520da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/processor/java/org/truffleruby/processor/BuildInformationProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public synchronized void init(ProcessingEnvironment env) {
5959
buildName = System.getenv("TRUFFLERUBY_BUILD_NAME");
6060
fullRevision = runCommand("git rev-parse HEAD");
6161
shortRevision = fullRevision.substring(0, 8);
62-
isDirty = !runCommand("git status --porcelain").isBlank();
62+
isDirty = runCommand("git status --porcelain") != null;
6363
compileDate = runCommand("git log -1 --date=short --pretty=format:%cd");
6464
copyrightYear = Integer.parseInt(compileDate.split("\\-")[0]);
6565
kernelMajorVersion = findKernelMajorVersion();

0 commit comments

Comments
 (0)