Fixed issue with space(s) in zipfile name or destination directory.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23784 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin 2008-01-30 02:16:13 +00:00
parent 73bfb57abd
commit a9f2290ede

View File

@ -77,15 +77,15 @@ unzipFile()
if [ $isImage ]; then
unzipDir=$tmpDir/unzip
attrrmrf $unzipDir
mkdir -p $unzipDir
attrrmrf "$unzipDir"
mkdir -p "$unzipDir"
$unzip -q -d $unzipDir $zipFile
$cp -r ${sPrefix}$unzipDir/. ${tPrefix}$targetUnzipDir
$unzip -q -d "$unzipDir" "$zipFile"
$cp -r "${sPrefix}$unzipDir/." "${tPrefix}$targetUnzipDir"
attrrmrf $unzipDir
attrrmrf "$unzipDir"
else
$unzip -q -o -d ${tPrefix}$targetUnzipDir ${sPrefix}$zipFile
$unzip -q -o -d "${tPrefix}$targetUnzipDir" "${sPrefix}$zipFile"
fi
}