diff --git a/Installomator.sh b/Installomator.sh index d3d03f9..f20bb73 100755 --- a/Installomator.sh +++ b/Installomator.sh @@ -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