Skip to content

Commit

Permalink
fix: prebuild.sh files not working with eval (#5215)
Browse files Browse the repository at this point in the history
  • Loading branch information
walmat authored Dec 1, 2023
1 parent 61969f6 commit e389189
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/eas-build-pre-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

echo "PRE INSTALLING"


if [ -n "$RAINBOW_SCRIPTS_INTERNALS" ]; then
git clone https://$RAINBOW_SCRIPTS_TOKEN$RAINBOW_SCRIPTS_INTERNALS
cd rainbow-scripts
Expand All @@ -11,12 +10,12 @@ if [ -n "$RAINBOW_SCRIPTS_INTERNALS" ]; then
fi

if [ "$EAS_BUILD_PLATFORM" = "ios" ]; then
eval $RAINBOW_SCRIPTS_APP_IOS_PREBUILD_HOOK
bash $RAINBOW_SCRIPTS_APP_IOS_PREBUILD_HOOK;
echo "✅ executed ios prebuild hook"
fi

if [ "$EAS_BUILD_PLATFORM" = "android" ]; then
eval $RAINBOW_SCRIPTS_APP_ANDROID_PREBUILD_HOOK > /dev/null 2>&1;
bash $RAINBOW_SCRIPTS_APP_ANDROID_PREBUILD_HOOK;
echo "✅ executed android prebuild hook"
fi

Expand Down

0 comments on commit e389189

Please sign in to comment.