( path )
| 34 | // Check if a file is executable |
| 35 | // https://stackoverflow.com/a/69897809/1397641 |
| 36 | async function isExecutable ( path ) { |
| 37 | const stats = await fs.stat( path ) |
| 38 | const isExecutable = !!(stats.mode & fs.constants.S_IXUSR) |
| 39 | |
| 40 | return isExecutable |
| 41 | } |
| 42 | |
| 43 | // 👩💻 Bash Download example - https://github.com/jmooring/hugo-stork/blob/main/build.sh |
| 44 | export async function downloadStorkExecutable () { |
no outgoing calls
no test coverage detected