From 56147289d5f6a516a0a4c5b6a6cc9e35cf70b333 Mon Sep 17 00:00:00 2001 From: bohung Date: Mon, 12 Sep 2022 22:33:21 +0800 Subject: [PATCH] Fix bug. --- move_site.sh | 4 ++-- move_site_interactive.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/move_site.sh b/move_site.sh index f611495..8978827 100644 --- a/move_site.sh +++ b/move_site.sh @@ -106,9 +106,9 @@ else local_store_path="$HOME/orbit_sites/$new_site_name" mkdir -p "$local_store_path" if [[ -z "$use_local_command" ]]; then - $scp_command$root_path/* $local_store_path/. + $scp_command$root_path/{*,.[^.]*} $local_store_path/. 2>>/dev/null else - $scp_command$root_path/* $local_store_path/. + $scp_command$root_path/{*,.[^.]*} $local_store_path/. 2>>/dev/null fi cd $local_store_path new_nginx_file="/etc/nginx/orbit_sites/$new_site_name" diff --git a/move_site_interactive.sh b/move_site_interactive.sh index e5d2c2e..4bf2932 100644 --- a/move_site_interactive.sh +++ b/move_site_interactive.sh @@ -112,9 +112,9 @@ else local_store_path="$HOME/orbit_sites/$new_site_name" mkdir -p "$local_store_path" if [[ -z "$use_local_command" ]]; then - $scp_command$root_path/* $local_store_path/. + $scp_command$root_path/{*,.[^.]*} $local_store_path/. 2>>/dev/null else - $scp_command$root_path/* $local_store_path/. + $scp_command$root_path/{*,.[^.]*} $local_store_path/. 2>>/dev/null fi cd $local_store_path new_nginx_file="/etc/nginx/orbit_sites/$new_site_name"