WIP: Updates per shellcheck, part 1
Adding quotes to prevent word splitting; adding umask
and a subshell to locally effect DACs of all dirs created by mkdir
; individuating exit codes for declaring and setting of variables; replacing '[' with '[['; converting '-a' to ']] && [[' as '-a' is not well defined; etc.