Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
nhooyr
· 3y ago · 0 comments
You can trivially sidestep this with a main shell function called at the end of your script.
https://github.com/terrastruct/d2/blob/729b12685af79bbdaf4b3...
Comments
[–]
dllthomas
3y 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.