$INTERACTIVE && read -p "Create user 'sik' in PostgresSQL db (needs sudo) [y/n]?" -n 1 -r || REPLY="n" echo "" if [[ $REPLY =~ ^[Yy]$ ]] then sudo -u postgres psql < "$PWD/init.sql" fi