mirror of
https://github.com/mtan93/Installomator.git
synced 2026-04-15 14:23:10 +01:00
switched find commands to newline separated
This commit is contained in:
@@ -1087,8 +1087,8 @@ installPkgInDmg() {
|
|||||||
# locate pkg in dmg
|
# locate pkg in dmg
|
||||||
if [[ -z $pkgName ]]; then
|
if [[ -z $pkgName ]]; then
|
||||||
# find first file ending with 'pkg'
|
# find first file ending with 'pkg'
|
||||||
findfiles=$(find -X "$dmgmount" -iname "*.pkg" -maxdepth 1 )
|
findfiles=$(find "$dmgmount" -iname "*.pkg" -maxdepth 1 )
|
||||||
filearray=( ${(0)findfiles} )
|
filearray=( ${(f)findfiles} )
|
||||||
if [[ ${#filearray} -eq 0 ]]; then
|
if [[ ${#filearray} -eq 0 ]]; then
|
||||||
cleanupAndExit 20 "couldn't find pkg in dmg $archiveName"
|
cleanupAndExit 20 "couldn't find pkg in dmg $archiveName"
|
||||||
fi
|
fi
|
||||||
@@ -1111,8 +1111,8 @@ installPkgInZip() {
|
|||||||
# locate pkg in zip
|
# locate pkg in zip
|
||||||
if [[ -z $pkgName ]]; then
|
if [[ -z $pkgName ]]; then
|
||||||
# find first file starting with $name and ending with 'pkg'
|
# find first file starting with $name and ending with 'pkg'
|
||||||
findfiles=$(find -X "$tmpDir" -iname "*.pkg" -maxdepth 1 )
|
findfiles=$(find "$tmpDir" -iname "*.pkg" -maxdepth 1 )
|
||||||
filearray=( ${(0)findfiles} )
|
filearray=( ${(f)findfiles} )
|
||||||
if [[ ${#filearray} -eq 0 ]]; then
|
if [[ ${#filearray} -eq 0 ]]; then
|
||||||
cleanupAndExit 20 "couldn't find pkg in zip $archiveName"
|
cleanupAndExit 20 "couldn't find pkg in zip $archiveName"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user