File size: 398 Bytes
6726122
 
 
 
 
 
 
 
 
2f8d384
6726122
 
 
 
 
 
2f8d384
6726122
 
 
 
683f449
6726122
2f8d384
5bca8ee
6726122
2f8d384
6726122
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash

FLAG_1=$1

cd /workspace
rm -rf output
rm -rf outputs
rm -f out*.tar*
rm -f out*.zip*
rm -f comfy*.log

cd *
rm -rf output
rm -rf outputs
rm -f out*.tar*
rm -f out*.zip*
rm -f comfy*.log

cd CU
rm -rf output
rm -rf outputs
rm -f comfy*.log

if [ "$FLAG_1" = "1" ]; then
  rm -rf ./temp/*
  sudo rm -rf /tmp/*
  pip cache purge
else
  find /tmp -mtime +2 -delete
fi

cd /workspace
cd *