Y
Hacker News
new
|
ask
|
show
|
jobs
by
nhooyr
1291 days ago
You can trivially sidestep this with a main shell function called at the end of your script.
https://github.com/terrastruct/d2/blob/729b12685af79bbdaf4b3...
1 comments
dllthomas
1291 days ago
Kinda! The author of the script can trivially avoid the problem. The person pasting "curl ... | bash" into their terminal needs to rely on them having done so, which (last I looked) they too often haven't.
link