Only move setting the executable bit to the build method

This commit is contained in:
helpermethod
2021-03-29 10:34:03 +02:00
committed by Marco Vermeulen
parent eeda00a15b
commit d2d2aee464

View File

@@ -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