wordpress-dev/load-config.sh

15 lines
211 B
Bash
Executable File

#!/bin/sh
_file="$1"
if [ -z "$_file" ] ; then
if [ -f "$(pwd)/wp-dev-config" ] ; then
_file="wp-dev-config"
else
echo "Must supply configuration file as an argument."
exit 1
fi
fi
. "$(pwd)/$_file"