- Format all shell scripts using [shfmt]
(https://github.com/mvdan/sh).
Options used:
* `-bn`: binary ops like && and | may start a line
* `-sr`: redirect operators will be followed by a space
* `-ci`: indent switch cases
* `-i 4`: indent 4 spaces
* `-s`: simplify the code
* `-p`: parse for posix compliance
- Add Github action to lint changes to scripts and enforce formatting
going forward
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
This is a re-attempt of #643
- `[ "$archive" = "" ]` may be replaced with `[ -z "$archive" ]`
- added exit codes
- upon entering `ext -c` with no arguments stderr will be thrown
from readlink, should be suppressed