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