removed debug-output
This commit is contained in:
parent
5c63c5d985
commit
b87072bb0a
@ -8,23 +8,6 @@ readonly CHECKOUT_HISTORY_FILE="/opt/app/tools/atbupdate/checkout_history"
|
|||||||
readonly GIT_UPDATE_LOG="/opt/app/tools/atbupdate/update_log.csv"
|
readonly GIT_UPDATE_LOG="/opt/app/tools/atbupdate/update_log.csv"
|
||||||
readonly OPKG_COMMANDS_FILE="./etc/psa_update/opkg_commands"
|
readonly OPKG_COMMANDS_FILE="./etc/psa_update/opkg_commands"
|
||||||
|
|
||||||
if [ -f "$OPKG_COMMANDS_FILE" ]; then
|
|
||||||
echo "POST-CHECKOUT $OPKG_COMMNDS_FILE EXISTS" > "/tmp/post_checkout.txt"
|
|
||||||
if grep -qE . "${OPKG_COMMANDS_FILE}"; then
|
|
||||||
echo "POST-CHECKOUT grep" > "/tmp/post_checkout.txt"
|
|
||||||
fi
|
|
||||||
readarray opkg_commands < <(cat "$OPKG_COMMANDS_FILE")
|
|
||||||
for opkg_c in "${opkg_commands[@]}"; do
|
|
||||||
# check for lines longer than 'opkg '
|
|
||||||
if [ "${#opkg_c}" -gt 4 ]; then
|
|
||||||
# comment: spaces, at least one '#'
|
|
||||||
grep -qE '^[[:space:]]*#+.*$' <<< "$opkg_c" && continue
|
|
||||||
echo -n "EXECUTE, $opkg_c, $now, N/A" | tr -d '\n\r' >> "/tmp/post_checkout.txt" 2>&1
|
|
||||||
echo "" >> $GIT_UPDATE_LOG 2>&1
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
write_log_file () {
|
write_log_file () {
|
||||||
if [ -f $CHECKOUT_HISTORY_FILE ]; then
|
if [ -f $CHECKOUT_HISTORY_FILE ]; then
|
||||||
# repo: customer_281
|
# repo: customer_281
|
||||||
|
Loading…
Reference in New Issue
Block a user