From 5372c10bea446660483c41fd315ec54f495da1ba Mon Sep 17 00:00:00 2001 From: DamienBitrise <60897705+DamienBitrise@users.noreply.github.com> Date: Tue, 26 Jul 2022 13:38:06 -0700 Subject: [PATCH 1/2] Update step.sh --- step.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/step.sh b/step.sh index 04b3946..5983be7 100644 --- a/step.sh +++ b/step.sh @@ -1,5 +1,8 @@ #!/bin/bash -set -e +set -ex -echo $message +echo "arch" > build.sh +chmod 777 build.sh +alias xcodebuild="arch -x86_64 /bin/bash ./build.sh" +xcodebuild From aff224423b216eb742e755f03b5ce4b369dc248d Mon Sep 17 00:00:00 2001 From: DamienBitrise <60897705+DamienBitrise@users.noreply.github.com> Date: Tue, 26 Jul 2022 14:49:11 -0700 Subject: [PATCH 2/2] Update step.sh --- step.sh | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/step.sh b/step.sh index 5983be7..83212e9 100644 --- a/step.sh +++ b/step.sh @@ -3,6 +3,25 @@ set -ex echo "arch" > build.sh -chmod 777 build.sh -alias xcodebuild="arch -x86_64 /bin/bash ./build.sh" + +# Update .bashrc +echo -e "alias xcodebuild=\"arch -x86_64 /bin/bash /Users/vagrant/git/build.sh\"\n" >> ~/.bashrc +source ~/.bashrc &>/dev/null + +# Update .bash_profile +#echo -e "shopt -s expand_aliases\n" >> ~/.bash_profile +#echo -e ". ~/.bashrc\n" >> ~/.bash_profile +#source ~/.bash_profile &>/dev/null + +# Update .zshrc +echo -e "shopt -s expand_aliases\n" >> ~/.zshrc +echo -e ". ~/.bashrc\n" >> ~/.zshrc +source ~/.zshrc &>/dev/null + +echo "Running arch" +arch + +echo "" + +echo "Running Swizzled xcodebuild" xcodebuild