]> git.zndr.dk Git - dotfiles.git/commitdiff
Remove warning when creating existing .tmp/
authorJannik ZANDER <jzander@grundfos.com>
Thu, 26 May 2016 10:10:49 +0000 (12:10 +0200)
committerJannik ZANDER <jzander@grundfos.com>
Thu, 26 May 2016 10:10:49 +0000 (12:10 +0200)
.config/profile/rc/paths.sh

index 9c3e32673f242e78696a0d7bc21068581d444a32..45a7adf21d23d42270facf9042266789bb3792e7 100644 (file)
@@ -17,8 +17,7 @@ fi
 # Set PATH to temporary folders
 export TMPDIR="${HOME}/.tmp"
 export TEMPDIR="$TMPDIR"
-mkdir "$TMPDIR"
-chmod 700 "$TMPDIR"
+mkdir --mode=700 "$TMPDIR" > /dev/null 2>&1
 
 # Set PATH to PREFIX folders
 export PREFIX="${HOME}/.local/"