Draft: Autoinstaller fixes
-
Add set -eu to exit early on failures
-
Move to command -v for command checks which is posix
-
Quote the basename in case spaces exist in the path
-
Check for .git in the basedir instead of the current dir
-
Remove the broken TTY check since the result of ps without a TTY would be "?" instead of "". Use exec instead to connect up the parent process pipes to implement both cases
-
Don't hide the error message on
hostname -f
-
Return an exit status of 1 in the PHP exception handler