From 47c11893eaf4606ddefaeceab3caf47587db6cea Mon Sep 17 00:00:00 2001 From: Gabriel Simmer Date: Thu, 15 Aug 2024 22:39:32 +0100 Subject: [PATCH] Default TMPDIR --- snapshot.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snapshot.sh b/snapshot.sh index 47ce576..17594ca 100755 --- a/snapshot.sh +++ b/snapshot.sh @@ -1,6 +1,8 @@ #!/usr/bin/env bash set -euo pipefail +TMPDIR="${TMPDIR:-/tmp}" + check_dependencies() { local commands=("docker" "sha1sum" "curl" "mktemp" "date" "awk") for cmd in "${commands[@]}"; do