From 9d686e9a45757a32e81d68659ea80ee0fceeb982 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Thu, 12 Sep 2019 14:31:27 +0200 Subject: [PATCH] Change scratch to create directories on ramdisk --- bin/scratch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/scratch b/bin/scratch index c226c7c..2d4cad6 100755 --- a/bin/scratch +++ b/bin/scratch @@ -1,5 +1,5 @@ #!/bin/bash -export scratch=$(mktemp -d -t tmp.XXXXXXXXXX) +export scratch=$(mktemp -p /dev/shm -d -t tmp.XXXXXXXXXX) function finish { echo "Deleting $scratch..." rm -rf "$scratch"