indentation fixes
there's a lot of indentation issues in the codebase. this fixes many of them.
there is inconsistency in use of tabs vs spaces between files. i did not address this here, i only adjusted per the dominant style in each file.
there are some places where I left spaces in use despite the dominant style being tabs; this was almost exclusively so with the foo)
branch entries of case blocks where these used four spaces from the alignment of case
/esac
while the code under each uses one tab from same. i left these as they were since at least there was almost complete consistency in this fixing it would have been a big change. leaving it does mean that the two align in my editor though which is not ideal. maybe for a followup?
Edited by Lyndon Brown