From 25eabb38e9030149b8066006e36eea4d0303bac2 Mon Sep 17 00:00:00 2001 From: Bohung Date: Fri, 8 Jul 2022 18:37:02 +0800 Subject: [PATCH] Fix bug. --- move_site.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/move_site.sh b/move_site.sh index 2471fd3..09e2ae2 100644 --- a/move_site.sh +++ b/move_site.sh @@ -12,7 +12,7 @@ user_pass="$6" domain_escape=`echo $domain|sed 's/\./\\\./g'`; ssh_command="sshpass -p $pass ssh $user@$ip -p $port"; scp_command="sshpass -p $pass scp -r -P $port $user@$ip"; -nginx_file=`$ssh_command "grep -e '\s$domain_escape' /etc/nginx/orbit_sites/* -l"`; +nginx_file=`$ssh_command "grep -e $'\s'$domain_escape' /etc/nginx/orbit_sites/* -l"`; remote_sudo_command="echo $pass|sudo -S -p ''" alias sudo_command="echo $user_pass|sudo -S -p ''" if [ -z "$(which sshpass)" ]; then