From c0eb6fa368d43fd78301b92b511efe824708deab Mon Sep 17 00:00:00 2001 From: Graham <4gra@users.noreply.github.com> Date: Sun, 25 May 2025 18:52:00 +0100 Subject: [PATCH] replace :3 substrings with :2 I'm not sure exactly what :3 was meant to do - perhaps syntax from another / older shell? - but on my Mac (running MacOS 15.x) this results in filenames being truncated (i.e. "./myApp.ipa" truncated to "yApp.ipa"). --- ipaHelperInstall.app/Installation/ipaHelper | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ipaHelperInstall.app/Installation/ipaHelper b/ipaHelperInstall.app/Installation/ipaHelper index 3ba9ed9..88ad78a 100755 --- a/ipaHelperInstall.app/Installation/ipaHelper +++ b/ipaHelperInstall.app/Installation/ipaHelper @@ -42,7 +42,7 @@ function ipa_in_wd { cd "$wd" find ./ -type f -maxdepth 1 -iname "*.ipa" | while read f; do - f="${f:3}" + f="${f:2}" echo "$f" return done @@ -435,7 +435,7 @@ if [ "$opt_profile" != "" ]; then fi cd "$bd" find ./ -type f -maxdepth 1 -iname "*.mobileprovision" | while read f; do - f="${f:3}" + f="${f:2}" echo "$bd/$f" break done @@ -1094,7 +1094,7 @@ elif [ "$filetype" = "ipa" ]; then fi cd "/tmp/ipa_helper/$file_id/Payload" app="$(find ./ -type d -maxdepth 1 -iname "*.app*")" - ad="/tmp/ipa_helper/$file_id/Payload/${app:3}" + ad="/tmp/ipa_helper/$file_id/Payload/${app:2}" elif [ "$filetype" = "zip" ]; then mkdir -p "/tmp/ipa_helper/$file_id" unzip -q "$ipa" -d "/tmp/ipa_helper/$file_id/Payload" 1>&3 2>&4 @@ -1108,7 +1108,7 @@ elif [ "$filetype" = "zip" ]; then if [ "$app" = "" ]; then problem_encountered "zip file does not contain app file" fi - ad="/tmp/ipa_helper/$file_id/Payload/${app:3}" + ad="/tmp/ipa_helper/$file_id/Payload/${app:2}" fi #echo "ipa: $ipa ad: $ad"