Add some debug output. Use repository path for opkg_commnds-file
This commit is contained in:
parent
df1634e17c
commit
46a8a8f0e3
@ -1,12 +1,16 @@
|
|||||||
#!/bin/bash -
|
#!/bin/bash -
|
||||||
echo "POST-CHECKOUT $PWD" > "/tmp/post_checkout.txt"
|
# echo "POST-CHECKOUT $PWD" > "/tmp/post_checkout.txt"
|
||||||
# echo "PREV-HEAD=$1"
|
# echo "PREV-HEAD=$1"
|
||||||
# echo "CURR-HEAD=$2"
|
# echo "CURR-HEAD=$2"
|
||||||
# echo "BRANCH-CHECKOUT=$3"
|
# echo "BRANCH-CHECKOUT=$3"
|
||||||
|
|
||||||
readonly CHECKOUT_HISTORY_FILE="/opt/app/tools/atbupdate/checkout_history"
|
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"
|
||||||
|
fi
|
||||||
|
|
||||||
write_log_file () {
|
write_log_file () {
|
||||||
if [ -f $CHECKOUT_HISTORY_FILE ]; then
|
if [ -f $CHECKOUT_HISTORY_FILE ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user