Open wiryhatbox opened 2 weeks ago
Safer scripts with set -euf and other options whenever possible
set -euf
Make scripts more portable
Quote variables
Use end-of-options (--) to make scripts safer
--
Use either curl or wget with safer parameters
All commands (even mkdir/cd) exit properly on failure
Rethink eval arguments
Let me know if you need help with the review, functionality remained unchanged.
Leave the file
Safer scripts with
set -euf
and other options whenever possibleMake scripts more portable
Quote variables
Use end-of-options (
--
) to make scripts saferUse either curl or wget with safer parameters
All commands (even mkdir/cd) exit properly on failure
Rethink eval arguments