Update test.sh

This commit is contained in:
2019-02-03 20:48:26 -06:00
parent 9c32c379e6
commit aa25d328fd

29
test.sh
View File

@@ -17,9 +17,30 @@ if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remot
fi
string='heLLo'
NEWSITE(){
while [ $# -gt 0 ]; do
case "$1" in
-site) NEW_SITE=${2};;
-type) SITE_TYPE=${2};;
-ssl) CREATE_SSL=${2};;
-proxy_scheme) PROXYSCHEME=${2};;
-proxy_host) PROXYHOST=${2};;
-proxy_port) PROXYPORT=${2};;
esac
done
echo " Here: '${NEW_SITE}'"
}
if [ ${1-x} ]; then
case $1 in
newcert) NEWCERT;;
certrenew) CERTRENEW;;
nightlyrenew) NIGHTLYRENEW;;
delsite) DELSITE;;
newsite) NEWSITE ${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14};;
string=${string,,}
string=${string~}
esac
else
GUI
fi
echo "HERE: ${string}"
exit 0