mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Auto cleaning of DEB packaging sub dirs
This commit is contained in:
3
main.sh
3
main.sh
@@ -16,6 +16,9 @@
|
||||
# Include here to make "display_alert" and "prepare_host" available
|
||||
source $SRC/lib/general.sh # General functions
|
||||
|
||||
# clean unfinished DEB packing
|
||||
rm -rf $DEST/debs/*/*/
|
||||
|
||||
# compress and remove old logs
|
||||
mkdir -p $DEST/debug
|
||||
(cd $DEST/debug && tar -czf logs-$(date +"%d_%m_%Y-%H_%M_%S").tgz *.log) > /dev/null 2>&1
|
||||
|
||||
Reference in New Issue
Block a user