mattermost-mobile/scripts/preinstall.sh
Elias Nahum 69872eb678
Upgrade Dependencies (#7491)
* update dependencies

* update dependencies

* update readable-stream

* further updates
2023-08-18 16:04:28 -04:00

22 lines
No EOL
521 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.26) > /dev/null 2>&1; then
echo "Installing Bundler"
gem install bundler --version 2.3.26 || exit 1
fi
if !(gem list cocoapods -i --version 1.12.1) > /dev/null 2>&1; then
cocoapods
fi
fi