]> arthur.barton.de Git - ConfigScripts.git/commitdiff
Don't use "mkdir -p": very old systems don't support it ...
authorAlexander Barton <alex@barton.de>
Mon, 27 Aug 2012 20:21:00 +0000 (22:21 +0200)
committerAlexander Barton <alex@barton.de>
Mon, 27 Aug 2012 20:21:00 +0000 (22:21 +0200)
Tested with Apple A/UX 3.1

sys/profile

index f9275b4a71fde3cf49f4615e9923533094c7e0a4..88847b3d11d607be959db6b2d4554a54d6a8b203 100644 (file)
@@ -113,7 +113,7 @@ fi
 
 # Setup some directories to use local storage (no NFS)
 [ -d "/usr/local/home/$USER" ] \
-       || mkdir -p "/usr/local/home/$USER" >/dev/null 2>&1
+       || ( mkdir /usr/local/home; mkdir "/usr/local/home/$USER" ) >/dev/null 2>&1
 if [ -w "/usr/local/home/$USER" ]; then
        export LOCAL_HOME="/usr/local/home/$USER"
        export CCACHE_DIR="$LOCAL_HOME/.ccache"