Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 9 lines (8 sloc) 0.204 kB
#!/bin/bash
CURPATH=$(pwd)
if [ $(echo $CURPATH | grep -P "^$HOME/public_html/") ]; then
SITE=$(echo $CURPATH | perl -plne "s/^.*?public_html\///" | perl -plne "s/\/.*$//")
echo $SITE
exit 0
fi
exit 1
Jump to Line
Something went wrong with that request. Please try again.