From c4dd18a2e409ff47900055f6a3f19d53a2fe1c0d Mon Sep 17 00:00:00 2001 From: AIIrondev Date: Mon, 27 Jul 2026 15:30:34 +0200 Subject: [PATCH] change to have automatic clearing of the tmp directory --- restart.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/restart.sh b/restart.sh index 05734de..0e464f1 100755 --- a/restart.sh +++ b/restart.sh @@ -1,6 +1,8 @@ #!/usr/bin/env bash set -euo pipefail +sudo find /tmp -maxdepth 1 -name "tmp.*" -exec rm -rf {} + + SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" cd "$SCRIPT_DIR"