I got a warning when I was running the script, so I ran shellcheck on it and got a bunch of warnings.