From 62371de79c76987ffd19ea07fffe9e5ccfa1f9e2 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 10 Nov 2020 09:26:11 +0100 Subject: [PATCH] Fixing bin/update-nextcloud --- bin/update-nextcloud | 6 ++++-- lib/functions.rc | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/update-nextcloud b/bin/update-nextcloud index 97de354..d7e965f 100755 --- a/bin/update-nextcloud +++ b/bin/update-nextcloud @@ -285,8 +285,10 @@ sync_apps() { debug "Apps to sync:\n${app_sync_list}" for app in ${app_sync_list} ; do - debug "Syncing app '${CYAN}${app}${NORMAL}' ..." - rsync -a "${cur_apps_dir}/${app}" "${new_apps_dir}/" + if [[ -d "${cur_apps_dir}/${app}" ]] ; then + debug "Syncing app '${CYAN}${app}${NORMAL}' ..." + rsync -a "${cur_apps_dir}/${app}" "${new_apps_dir}/" + fi done cd diff --git a/lib/functions.rc b/lib/functions.rc index 6c3663f..c24d318 100644 --- a/lib/functions.rc +++ b/lib/functions.rc @@ -10,7 +10,7 @@ BLUE="" CYAN="" NORMAL="" -VERSION="0.3.6" +VERSION="0.3.7" STD_SHORT_OPTIONS="sdvhV" STD_LONG_OPTIONS="simulate,debug,verbose,nocolor,help,version" -- 2.39.5