install: add a workaround for different behavour of mktemp on macos

This commit is contained in:
CJ van den Berg 2025-11-04 20:41:25 +01:00
parent f0acb197ad
commit abc06070d7
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -204,7 +204,7 @@ if [ "$debug" -eq 1 ]; then
fi
url="https://github.com/$repo/releases/download/$version/$filename.$ext"
tmp_path="$(mktemp -t -d "flow-control-installer.XXXXX")"
tmp_path="$(mktemp -d "${TMPDIR:-/tmp}/flow-control-installer.XXXXXXXXX")"
if [ -z "$tmp_path" ] || [ "$tmp_path" = "/" ]; then
echo "failed to create a temporary download directory"