use OPKG_CMDS_PSA_FILE

This commit is contained in:
Gerhard Hoffmann 2022-06-04 22:08:01 +02:00
parent 21591d8e3d
commit 66511262e1

View File

@ -106,7 +106,7 @@ update_psa() {
revert_customer_repository
exit $__r
fi
# copy *.conf and/or *.ini-files to their corresponding system-directories
if ! copy $files_to_copy; then
local __r=$?
@ -114,11 +114,11 @@ update_psa() {
revert_customer_repository
exit $__r
fi
# check if the opkg-command-file has been changed during 'git pull'
if grep -qE ".*opkg_commands.*?" <<< $changed_files; then
# read opkg_cmds: each line respresents an opkg-command
readarray opkg_commands < <(cat $opkg_cmds_file)
readarray opkg_commands < <(cat $OPKG_CMDS_PSA_FILE)
for opkg_c in "${opkg_commands[@]}"; do
if grep -qE "^\s*[#]+.*$" <<< $opkg_c; then
continue # found comment line