diff options
Diffstat (limited to 'bin/disks-sample.sh')
| -rwxr-xr-x | bin/disks-sample.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/disks-sample.sh b/bin/disks-sample.sh index 83b8a62..5291bcf 100755 --- a/bin/disks-sample.sh +++ b/bin/disks-sample.sh @@ -16,11 +16,11 @@ CACHE="$CACHE_DIR/disks.txt" MOUNTS=(/ /home /data /mnt/nfs/Library /mnt/nfs/shared) +umask 077 mkdir -p "$CACHE_DIR" TMP="$CACHE.tmp.$$" trap 'rm -f "$TMP"' EXIT -umask 077 # /usr/bin/df by absolute path with -P -B1, deliberately: # - the user's shell aliases df to `df -h`, and an alias or a function would |
