3 ms·
if the connection closes mid stream it could potentially run something catastrophic (rm -rf /) as sh will execute the partial command in its buffer.
by broknbottle 10y ago
if the connection closes mid stream it could potentially run something catastrophic (rm -rf /) as sh will execute the partial command in its buffer.
- geofft 10y agoYes. Wrap the entire script in a function and call the function at the end once the whole thing has transferred. https://install.sandstorm.io/ https://install.sandstorm.io/ , for instance, does this.