Improve logging for patching process

This commit is contained in:
zador-blood-stained 2016-07-06 16:35:47 +03:00
parent d9b34f18ed
commit c7e8280471

View file

@ -314,7 +314,9 @@ process_patch_file() {
| awk '{print $NF}' | sed -n 's/,//p' | xargs -I % sh -c 'rm %' | awk '{print $NF}' | sed -n 's/,//p' | xargs -I % sh -c 'rm %'
# main patch command # main patch command
echo "Processing file $(basename $patch)" >> $DEST/debug/patching.log
patch --batch --silent -p1 -N < $patch >> $DEST/debug/patching.log 2>&1 patch --batch --silent -p1 -N < $patch >> $DEST/debug/patching.log 2>&1
echo > $DEST/debug/patching.log
if [[ $? -ne 0 ]]; then if [[ $? -ne 0 ]]; then
display_alert "... $(basename $patch)" "failed" "wrn"; display_alert "... $(basename $patch)" "failed" "wrn";