Make sure we're not on Arch before nuking tmpfs dir

This commit is contained in:
Tk-Glitch
2021-11-13 14:48:35 +01:00
parent 4a196d3977
commit 9782efe0ff

View File

@@ -1433,7 +1433,7 @@ exit_cleanup() {
# Remove RPM temporary files left
rm -rf ${HOME}/.cache/linux-tkg-rpmbuild
if [ "$_use_tmpfs" = "true" ]; then
if [ "$_distro" != "Arch" ] && [ "$_use_tmpfs" = "true" ]; then
rm -rf "$_tmpfs_path/linux-tkg"
fi