Files
mattermost-mobile/scripts/preinstall.sh
2023-04-03 13:00:51 -04:00

22 lines
519 B
Bash
Executable File

#!/usr/bin/env bash
function cocoapods() {
echo "Installing Cocoapods"
if [[ $(uname -p) == 'arm' ]]; then
npm run ios-gems-m1 &> /dev/null || exit 1
else
npm run ios-gems &> /dev/null || exit 1
fi
}
if [[ "$OSTYPE" == "darwin"* ]]; then
if !(gem list bundler -i --version 2.3.6) > /dev/null 2>&1; then
echo "Installing Bundler"
gem install bundler --version 2.3.6 || exit 1
fi
if !(gem list cocoapods -i --version 1.11.3) > /dev/null 2>&1; then
cocoapods
fi
fi