From 4fd029e34240f0d713c9395da495fb8926d1d1ee Mon Sep 17 00:00:00 2001 From: Armin Briegel <1933192+scriptingosx@users.noreply.github.com> Date: Tue, 9 Jun 2020 09:08:05 +0200 Subject: [PATCH] switched find commands to newline separated --- Installomator.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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