Skip to content

Commit f37a8b2

Browse files
committed
fix: properly cleanup /tmp
1 parent 624f896 commit f37a8b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build_scripts/clean-stage.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ fi
1313

1414
# shellcheck disable=SC2114
1515
rm -rf /.gitkeep \
16+
/tmp/* \
1617
/var/tmp/* \
1718
/var/lib/{dnf,rhsm} \
1819
/var/cache/* \
19-
/boot \
20-
/tmp
20+
/boot
2121

22-
mkdir -p /boot /tmp
22+
mkdir -p /boot
2323

2424
find /var/log -type f -exec bash -c '[ -s "$1" ] && rm "$1"' _ {} \;
2525
find /var/* -maxdepth 0 -type d \! -name cache -exec rm -fr {} \;

0 commit comments

Comments
 (0)