Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

fix(sh): fix node->tish rewrites #46

Merged
merged 1 commit into from
Mar 6, 2019
Merged

fix(sh): fix node->tish rewrites #46

merged 1 commit into from
Mar 6, 2019

Conversation

iarna
Copy link
Contributor

@iarna iarna commented Mar 6, 2019

Make the node->tish rewrites a little less aggresive

Fixes #5909

@@ -391,7 +391,7 @@ class Installer {
this.log('verbose', 'tinkifyBins', 'convering installed bins to use tink:', bins)
return BB.map(bins, async bin => {
const real = await realpathAsync(bin)
const data = (await readFileAsync(real, 'utf8')).replace(/(#!\s*.*\s*)node/g, '$1tish')
const data = (await readFileAsync(real, 'utf8')).replace(/^(#!.*\b)node([^-\w]|$)/g, '$1tish$2')
await writeFileAsync(real, data, 'utf8')
}, { concurrency: 50, Promise: BB })
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's tish? 🤩

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a script that shorthands tink sh, since you can't have arguments in some key places (like shebangs in some platforms). Also just a useful shorthand for it.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ❤️ that mashup!

@zkat zkat merged commit 83e7070 into latest Mar 6, 2019
@zkat zkat deleted the fix-node-rewrite branch March 6, 2019 19:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants