From 27d5f4856dcad9f8749e2721c850496e3f01164b Mon Sep 17 00:00:00 2001 From: satbaby Date: Sat, 3 Dec 2011 17:12:58 +0000 Subject: [PATCH] update install.sh script: make dir if dir not exist git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1933 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- data/scripts/install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/data/scripts/install.sh b/data/scripts/install.sh index 537da3cf9..1e3dcb8ec 100755 --- a/data/scripts/install.sh +++ b/data/scripts/install.sh @@ -12,10 +12,13 @@ update_file() MD5IMG=0 fi - if [ "$MD5NEW" = "$MD5IMG" ] - then + if [ "$MD5NEW" = "$MD5IMG" ]; then echo "New and old File $FILE_IMAGE identical" else + DIR=$(dirname "$FILE_IMAGE") + if [ ! -d "${DIR}" ]; then + mkdir -p ${DIR} + fi echo "update $FILE_IMAGE" rm -f $FILE_IMAGE cp $FILE_NEW $FILE_IMAGE