From: Alexander Barton Date: Mon, 27 Aug 2012 20:21:00 +0000 (+0200) Subject: Don't use "mkdir -p": very old systems don't support it ... X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb0a22cffce193681953d38754ecfc306aa4464d;p=ConfigScripts.git Don't use "mkdir -p": very old systems don't support it ... Tested with Apple A/UX 3.1 --- diff --git a/sys/profile b/sys/profile index f9275b4..88847b3 100644 --- a/sys/profile +++ b/sys/profile @@ -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"