check for existence of opkg_commands-file
This commit is contained in:
parent
2618ee154d
commit
2d27a8a6d4
@ -27,6 +27,7 @@ write_log_file () {
|
|||||||
echo "DOWNLOAD, /etc/psa_config/DC2C_print29.json, $now, N/A" >> $GIT_UPDATE_LOG
|
echo "DOWNLOAD, /etc/psa_config/DC2C_print29.json, $now, N/A" >> $GIT_UPDATE_LOG
|
||||||
echo "DOWNLOAD, /etc/psa_config/DC2C_print32.json, $now, N/A" >> $GIT_UPDATE_LOG
|
echo "DOWNLOAD, /etc/psa_config/DC2C_print32.json, $now, N/A" >> $GIT_UPDATE_LOG
|
||||||
if grep -qE . "${OPKG_COMMANDS_FILE}"; then
|
if grep -qE . "${OPKG_COMMANDS_FILE}"; then
|
||||||
|
if [ -f "$OPKG_COMMANDS_FILE" ]; then
|
||||||
readarray opkg_commands < <(cat $OPKG_COMMANDS_FILE)
|
readarray opkg_commands < <(cat $OPKG_COMMANDS_FILE)
|
||||||
for opkg_c in "${opkg_commands[@]}"; do
|
for opkg_c in "${opkg_commands[@]}"; do
|
||||||
# check for lines longer than 'opkg '
|
# check for lines longer than 'opkg '
|
||||||
@ -38,6 +39,7 @@ write_log_file () {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "Found existing line: $line. Do nothing"
|
echo "Found existing line: $line. Do nothing"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user