aboutsummaryrefslogtreecommitdiffstats
path: root/bin/cache-sample.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/cache-sample.sh')
-rwxr-xr-xbin/cache-sample.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/cache-sample.sh b/bin/cache-sample.sh
index cac8911..202bc63 100755
--- a/bin/cache-sample.sh
+++ b/bin/cache-sample.sh
@@ -11,11 +11,11 @@ CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/udt"
CACHE="$CACHE_DIR/cachesize.txt"
TARGET="${XDG_CACHE_HOME:-$HOME/.cache}"
+umask 077
mkdir -p "$CACHE_DIR"
TMP="$CACHE.tmp.$$"
trap 'rm -f "$TMP"' EXIT
-umask 077
# Total first, then the four largest children. `sort -h` compares human sizes
# numerically; the Lua side converts them again because it needs the ratio to