Skip to content

Instantly share code, notes, and snippets.

View samface's full-sized avatar

Sammy Nordström samface

  • Norrköping, Sweden
View GitHub Profile
@samface
samface / wp.sh
Last active December 17, 2015 08:59 — forked from chrisl8888/wp.sh
#!/bin/bash
# Exit this bash script if any statement returns a non-true return value (same as: set -e)
set -o errexit
if [ -z "$1" ]; then
echo
echo "ERROR: Must pass parameter of absolute or relative path to directory where Wordpress is to be installed."
echo "USAGE: $0 path/to/public/html/dir"
echo