From eab71d7512507e91f685cbb96f5aef718199a05d Mon Sep 17 00:00:00 2001 From: bryan Date: Fri, 11 Mar 2022 13:28:06 -0500 Subject: [PATCH] Repalce rsync with cp --- installJRMC | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/installJRMC b/installJRMC index b08dbe7..881cb82 100755 --- a/installJRMC +++ b/installJRMC @@ -1400,14 +1400,14 @@ migrateLibrary() { debug "Running: ${FUNCNAME[0]}" declare mc_user_path="$HOME/.jriver" - declare current_config_path="$mc_user_path/Media Center $MVERSION" declare previous_config_path="$mc_user_path/Media Center $(( MVERSION - 1 ))" if [[ ! -d "$current_config_path" ]] && - [[ -d "$previous_config_path" ]]; then + [[ -d "$previous_config_path" ]] && + mkdir -p "$current_config_path"; then echo "Migrating $previous_config_path to $current_config_path" - rsync -a "$previous_config_path" "$current_config_path" &>/dev/null + cp -a "$previous_config_path" "$current_config_path" &>/dev/null fi }