From 2b6c2f6c3621954d2a401167e420a1dc76dc7ac2 Mon Sep 17 00:00:00 2001 From: Mikhail Efremov Date: Tue, 24 Apr 2012 19:44:06 +0400 Subject: [PATCH] Replace mkdirhier with mkdir. --- engines/balou/scripts/balou-install-theme | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/engines/balou/scripts/balou-install-theme b/engines/balou/scripts/balou-install-theme index 48cf93b..e7e153f 100755 --- a/engines/balou/scripts/balou-install-theme +++ b/engines/balou/scripts/balou-install-theme @@ -39,12 +39,10 @@ themedir="${1}" targetdir="${2}" # ensure the target directory exists +mkdir -p "${targetdir}" >/dev/null 2>&1 if test ! -d "${targetdir}"; then - mkdirhier "${targetdir}" >/dev/null 2>&1 - if test $? -ne 0; then - echo "Unable to create themes directory ${targetdir}." >&2 - exit 1 - fi + echo "Unable to create themes directory ${targetdir}." >&2 + exit 1 fi # if the source is a file, we expect it to be a tarball -- 1.7.9.6