mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +02:00
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
Origin commit data
------------------
Branch: ni/coolstream
Commit: 27d5f4856d
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2011-12-03 (Sat, 03 Dec 2011)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user