mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-21 14:21:27 +00:00
Improve logging for patching process
This commit is contained in:
parent
d9b34f18ed
commit
c7e8280471
1 changed files with 2 additions and 0 deletions
|
@ -314,7 +314,9 @@ process_patch_file() {
|
|||
| awk '{print $NF}' | sed -n 's/,//p' | xargs -I % sh -c 'rm %'
|
||||
|
||||
# main patch command
|
||||
echo "Processing file $(basename $patch)" >> $DEST/debug/patching.log
|
||||
patch --batch --silent -p1 -N < $patch >> $DEST/debug/patching.log 2>&1
|
||||
echo > $DEST/debug/patching.log
|
||||
|
||||
if [[ $? -ne 0 ]]; then
|
||||
display_alert "... $(basename $patch)" "failed" "wrn";
|
||||
|
|
Loading…
Add table
Reference in a new issue