#!/usr/bin/env bash -e
database="laalaa"
psql $database --command='SELECT 1' >/dev/null 2>/dev/null || createdb --echo "$database"
psql $database --command='CREATE EXTENSION IF NOT EXISTS postgis;'
psql $database --command='CREATE EXTENSION IF NOT EXISTS postgis_topology;'

#!/usr/bin/env bash
set -e
database="laalaa"
psql $database --command='SELECT 1' >/dev/null 2>/dev/null || createdb --echo "$database"
psql $database --command='CREATE EXTENSION IF NOT EXISTS postgis;'
psql $database --command='CREATE EXTENSION IF NOT EXISTS postgis_topology;'

Remove second argument from the shebang
Remove second argument from the shebang

https://github.com/koalaman/shellcheck/wiki/SC2096
