Skip to content

Commit 68f3a54

Browse files
committed
Use $HOME instead of ~
1 parent ffc915d commit 68f3a54

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

dist/index.js

Lines changed: 6 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.mjs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ async function installEssentials() {
1818
async function installSwiftenv() {
1919
core.startGroup('Install swiftlint');
2020

21-
await exec.exec('git clone --depth 1 https://github.com/kylef/swiftenv.git ~/.swiftenv');
21+
const swiftenvRoot = process.env.HOME + '/.swiftenv'
2222

23-
core.exportVariable('SWIFTENV_ROOT', '~/.swiftenv');
24-
core.addPath('~/.swiftenv/bin');
25-
core.addPath('~/.swiftenv/shims');
23+
await exec.exec('git clone --depth 1 https://github.com/kylef/swiftenv.git ' + swiftenvRoot);
24+
25+
core.exportVariable('SWIFTENV_ROOT', process.env.HOME + '/.swiftenv');
26+
core.addPath(swiftenvRoot + '/bin');
27+
core.addPath(swiftenvRoot + '/shims');
2628

2729
core.endGroup();
2830
}

0 commit comments

Comments
 (0)