wordpress-dev/load-config.sh

15 lines
244 B
Bash
Executable File

#!/bin/sh
_file="$(pwd)/$1"
if [ ! -f "$_file" ] ; then
if [ -f "$(pwd)/wp-dev-config" ] ; then
_file="$(pwd)/wp-dev-config"
else
echo "No configuration file supplied and no default ('wp-dev-config') found."
exit 1
fi
fi
. "$_file"