From 1182c2fb082a70b4946fa3afc2e2fb5ad1adcefa Mon Sep 17 00:00:00 2001 From: gau1991 Date: Mon, 10 Nov 2014 13:16:34 +0530 Subject: [PATCH] Improved regrex --- bin/easyengine | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/easyengine b/bin/easyengine index 27e55f19..07827e85 100644 --- a/bin/easyengine +++ b/bin/easyengine @@ -723,9 +723,8 @@ elif [ "$EE_FIRST" = "site" ]; then elif [ "$EE_SECOND" = "migrate" ]; then # Configure variables EE_DOMAIN_CHECK=$EE_THIRD - EE_SITE_CREATE_OPTION=$EE_FOURTH - if [ "$EE_FOURTH%=*" = "--remote-server" ]; then + if [ "${EE_FOURTH%=*}" = "--remote-server" ]; then EE_SITE_CREATE_OPTION="" EE_SITE_CACHE_OPTION="" EE_REMOTE_SERVER=$EE_FOURTH @@ -734,7 +733,8 @@ elif [ "$EE_FIRST" = "site" ]; then EE_REMOTE_METHOD=$EE_SEVENTH EE_REMOTE_PATH=$EE_EIGHT EE_MYSQL_PATH=$EE_NINTH - elif [ "$EE_FIFTH%=*" = "--remote-server" ]; then + elif [ "${EE_FIFTH%=*}" = "--remote-server" ]; then + EE_SITE_CREATE_OPTION=$EE_FOURTH EE_SITE_CACHE_OPTION="" EE_REMOTE_SERVER=$EE_FIFTH EE_REMOTE_USER=$EE_SIXTH