From 1ac0ab8a236507a0847c7019989b14bc39a3fd70 Mon Sep 17 00:00:00 2001 From: Nicolas Iooss Date: Fri, 9 May 2014 19:34:31 +0200 Subject: [PATCH] Support https in blog URLs --- createBlog.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/createBlog.sh b/createBlog.sh index 3d97a77..aaece90 100755 --- a/createBlog.sh +++ b/createBlog.sh @@ -78,7 +78,7 @@ while true ; do ;; -u) URL=$2; - if ! echo "${URL}" | grep -E "^http://[^/]+/" > /dev/null; then + if ! echo "${URL}" | grep -E "^https?://[^/]+/" > /dev/null; then echo -e "ERROR: URL must be a full URL, e.g 'http://www.example.org/'\n"; usage 1 fi @@ -100,7 +100,7 @@ if [[ "x${TYPE}" == "x" || "x${OWNER}" == "x" || "x${URL}" == "x" ]]; then usage 1 fi -BASEURL=`echo "${URL}" | sed -r 's,http://[^/]+/,/,'` +BASEURL=`echo "${URL}" | sed -r 's,https?://[^/]+/,/,'` echo "Creating blog with : TYPE = ${TYPE} -- 2.1.4