I get the error message...
could not change directory to "/home/corey/scripts": Permission denied
... when I run the following script ...
sudo -u postgres psql < setup_dev_db.sql
read -rsp $'Press any key to continue...\n' -n 1 key
... the contents of setup_dev_db.sql are executed without any issues, but the error is annoying.
Can I get rid of it?