mirror of
https://github.com/sdkman/sdkman-cli.git
synced 2026-04-29 03:25:55 -04:00
Only move setting the executable bit to the build method
This commit is contained in:
committed by
Marco Vermeulen
parent
eeda00a15b
commit
d2d2aee464
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user