X-Git-Url: http://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=autoconfig.functions;h=ccca4214ee92601e13a07667f9e5635afc7402ac;hp=48d98dad34ade3739bd4dedb5ccb108e333b17c8;hb=8001910c7d648cf70813e12ac50f6d47bd91d092;hpb=947f7c8e323bb1371d2347c7dd277fe3b9ee9f0b diff --git a/autoconfig.functions b/autoconfig.functions index 48d98da..ccca421 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Klaus Knopper , (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Sam Mai 17 22:15:54 CEST 2008 [mika] +# Latest change: Tue May 20 01:09:30 CEST 2008 [mika] ################################################################################ # {{{ path, variables, signals, umask, zsh @@ -1929,11 +1929,11 @@ if checkbootparam "mypath" ; then for i in $(echo $MY_PATH | sed 's/:/\n/g') ; do if ! [ -d "$i" ] ; then einfo "Creating directory $i" - mkdir -d "$i" ; eend $? + mkdir -p "$i" ; eend $? fi done + grep -q "${MY_PATH}" /etc/grml/my_path || echo "${MY_PATH}" >> /etc/grml/my_path ; eend $? eoutdent - echo "$MY_PATH" >> /etc/grml/my_path ; eend $? fi } # }}}