From 27f1a62323cfd6fa242bc19a82595b69bde6d2da Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Sun, 5 Jun 2022 16:50:25 +0200 Subject: [PATCH] Using copy() and filter_system_files() --- update_psa | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/update_psa b/update_psa index de7eff5..9e38f84 100755 --- a/update_psa +++ b/update_psa @@ -90,12 +90,18 @@ update() { fi local files=$(changed_file_names) + local system_files=$(filter_system_files "$files") # conf/ini-files - if ! check_md5_for_changed_conf_and_ini_files "$files" ; then + if ! check_md5_for_changed_conf_and_ini_files "$system_files" ; then log_error "$func:${LINENO}: new customer files wrong" revert_customer_repository ; exit 1 fi + if ! copy $system_files; then + log_error "$func:${LINENO}: copy operation failed" + revert_customer_repository ; exit 1 + fi + if grep -qE ".*opkg_commands.*?" <<< $files; then # read opkg_cmds: each line respresents an opkg-command readarray opkg_commands < <(cat $opkg_cmds_file)