]> git.pld-linux.org Git - projects/setup.git/blame - etc/profile.d/tmp-dir.sh
- don't set TMPDIR to ~/tmp if it doesn't exist
[projects/setup.git] / etc / profile.d / tmp-dir.sh
CommitLineData
c8c7883e
AM
1# create ~/tmp for normal users
2if [ $(/bin/id -u) -ge 1000 -a ! -d ~/tmp ]; then
d3ee719e 3 mkdir -p ~/tmp > /dev/null 2>&1
1441767e 4 chmod -f og-rwx ~/tmp 2>/dev/null
2c2afb73 5fi
c8c7883e
AM
6
7# if any user has ~/tmp then use it
8if [ -d ~/tmp ]; then
9 TMPDIR=~/tmp
10 export TMPDIR
11fi
This page took 0.079694 seconds and 4 git commands to generate.