From d2d2aee4648f30849c1396fb26f7b7760979a7fd Mon Sep 17 00:00:00 2001 From: helpermethod Date: Mon, 29 Mar 2021 10:34:03 +0200 Subject: [PATCH] Only move setting the executable bit to the build method --- src/test/groovy/sdkman/stubs/UnameStub.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/groovy/sdkman/stubs/UnameStub.groovy b/src/test/groovy/sdkman/stubs/UnameStub.groovy index 34cf6eab..5c934a16 100644 --- a/src/test/groovy/sdkman/stubs/UnameStub.groovy +++ b/src/test/groovy/sdkman/stubs/UnameStub.groovy @@ -12,6 +12,7 @@ class UnameStub { def file = new File(folder, "uname") file.createNewFile() + file.write "#!/usr/bin/env bash\n" new UnameStub(file: file) } @@ -33,7 +34,6 @@ class UnameStub { void build() { file << """ - |#!/usr/bin/env bash |if [[ "\$1" == '-m' ]]; then | echo "$machine" |elif [[ "\$1" == '-s' ]]; then