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