Skip to content

Commit

Permalink
Merge pull request #13 from foooomio/fix-wrapper-script
Browse files Browse the repository at this point in the history
Fix wrapper script
  • Loading branch information
foooomio authored Apr 15, 2021
2 parents edc2f79 + 3bfffaf commit e71c9b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6859,7 +6859,7 @@ async function installRdflint(version) {
const cachePath = await _actions_tool_cache__WEBPACK_IMPORTED_MODULE_2__.cacheFile(downloadPath, 'rdflint.jar', 'rdflint', version);
const jarPath = path__WEBPACK_IMPORTED_MODULE_4__.join(cachePath, 'rdflint.jar');
const executablePath = path__WEBPACK_IMPORTED_MODULE_4__.join(cachePath, 'rdflint');
fs__WEBPACK_IMPORTED_MODULE_3__.writeFileSync(executablePath, `#!/bin/sh\njava -jar ${jarPath} $@`);
fs__WEBPACK_IMPORTED_MODULE_3__.writeFileSync(executablePath, `#!/bin/sh\nexec java -jar ${jarPath} "$@"`);
fs__WEBPACK_IMPORTED_MODULE_3__.chmodSync(executablePath, 0o555);
return cachePath;
}
Expand Down
2 changes: 1 addition & 1 deletion src/setup-rdflint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async function installRdflint(version: string): Promise<string> {
const jarPath = path.join(cachePath, 'rdflint.jar');
const executablePath = path.join(cachePath, 'rdflint');

fs.writeFileSync(executablePath, `#!/bin/sh\njava -jar ${jarPath} $@`);
fs.writeFileSync(executablePath, `#!/bin/sh\nexec java -jar ${jarPath} "$@"`);
fs.chmodSync(executablePath, 0o555);

return cachePath;
Expand Down

0 comments on commit e71c9b1

Please sign in to comment.