diff options
Diffstat (limited to 'resolvconf.in')
| -rw-r--r-- | resolvconf.in | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/resolvconf.in b/resolvconf.in index ee0cb61..a1a89bf 100644 --- a/resolvconf.in +++ b/resolvconf.in @@ -275,19 +275,14 @@ dirname() config_mkdirs() { - e=0 for f; do [ -n "$f" ] || continue d="$(dirname "$f")" if [ ! -d "$d" ]; then - if type install >/dev/null 2>&1; then - install -d "$d" || e=$? - else - mkdir "$d" || e=$? - fi + mkdir -p "$d" || return $? fi done - return $e + return 0 } # With the advent of alternative init systems, it's possible to have |
