From 7b01bcf45603a8727512b60ea5e6b608d668b52b Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 3 Jun 2022 22:18:47 +0200 Subject: [PATCH] Set IFS to newline --- update_psa | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/update_psa b/update_psa index 0c8b95f..a6d0880 100755 --- a/update_psa +++ b/update_psa @@ -112,21 +112,16 @@ update() { revert_customer_repository ; exit 1 fi - # FIXME: sollte am anfang so gesetzt werden - SAVEIFS=$IFS - IFS=$'\n' if ! check_md5_for_opkg_packages opkg_output; then log_error "$func:${LINENO}: wrong md5sum for some opkg packages" revert_customer_repository ; exit 1 fi - - IFS=$SAVEIFS # perform a dry-run and check if everything might work as expected. # Actually execute the opkg command if ! exec_opkg $opkg_command; then - log_error "$func:${LINENO}: do_update failed" + log_error "$func:${LINENO}: exec_opkg $opkg_command failed" fallback_to_previous_version revert_customer_repository ; exit 1 fi @@ -150,9 +145,9 @@ if [ $# -ne 1 ] ; then echo "Usage: $0 filename" exit 1 else -# if [ -z $IFS ]; then -# IFS=$'\n' -# fi + if [ -z $IFS ]; then + IFS=$'\n' + fi if read_config "$1" ; then # set -x