mirror of
https://github.com/Fishwaldo/build.git
synced 2025-06-17 03:31:28 +00:00
Auto cleaning of DEB packaging sub dirs
This commit is contained in:
parent
d3cdac7000
commit
13c5157b46
1 changed files with 3 additions and 0 deletions
3
main.sh
3
main.sh
|
@ -16,6 +16,9 @@
|
||||||
# Include here to make "display_alert" and "prepare_host" available
|
# Include here to make "display_alert" and "prepare_host" available
|
||||||
source $SRC/lib/general.sh # General functions
|
source $SRC/lib/general.sh # General functions
|
||||||
|
|
||||||
|
# clean unfinished DEB packing
|
||||||
|
rm -rf $DEST/debs/*/*/
|
||||||
|
|
||||||
# compress and remove old logs
|
# compress and remove old logs
|
||||||
mkdir -p $DEST/debug
|
mkdir -p $DEST/debug
|
||||||
(cd $DEST/debug && tar -czf logs-$(date +"%d_%m_%Y-%H_%M_%S").tgz *.log) > /dev/null 2>&1
|
(cd $DEST/debug && tar -czf logs-$(date +"%d_%m_%Y-%H_%M_%S").tgz *.log) > /dev/null 2>&1
|
||||||
|
|
Loading…
Add table
Reference in a new issue