From: Frank Brehm Date: Tue, 10 Nov 2020 08:26:11 +0000 (+0100) Subject: Fixing bin/update-nextcloud X-Git-Tag: 0.1.5~4 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=62371de79c76987ffd19ea07fffe9e5ccfa1f9e2;p=pixelpark%2Fadmin-tools.git Fixing bin/update-nextcloud --- 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"