From: martin f. krafft Date: Sat, 8 May 2010 10:44:53 +0000 (+0200) Subject: properly create tmpdir if it doesn't exist X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain/aa362a0e0db8ebd77a5741573aeaf8ea15f22f0e?ds=inline;hp=--cc properly create tmpdir if it doesn't exist --- aa362a0e0db8ebd77a5741573aeaf8ea15f22f0e diff --git a/.zsh/zshenv/00_rdirs b/.zsh/zshenv/00_rdirs index 984da85..2822fe7 100644 --- a/.zsh/zshenv/00_rdirs +++ b/.zsh/zshenv/00_rdirs @@ -17,6 +17,6 @@ export BINDIR=$HOME/$BINDIR_REL export TMPDIR_REL=.tmp export TMPDIR=$HOME/$TMPDIR_REL -[ -d "$TMPDIR" ] || [ -L "$TMPDIR" ] || mkdir --parent "$TMPDIR" +mkdir --mode=0700 --parent "$(readlink -f $TMPDIR)" # vim:ft=zsh