mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-23 03:38:16 +00:00
Fix some shellcheck warnings
This commit is contained in:
parent
604968a987
commit
ada601354c
@ -9,7 +9,7 @@ export NPM_CONFIG_PROGRESS=false
|
|||||||
TARGET=$1
|
TARGET=$1
|
||||||
CONFIGURATION=${2:-Release}
|
CONFIGURATION=${2:-Release}
|
||||||
|
|
||||||
if echo $CONFIGURATION | grep -i "^Debug$" > /dev/null ; then
|
if echo "$CONFIGURATION" | grep -i "^Debug$" > /dev/null ; then
|
||||||
CONFIGURATION="Debug"
|
CONFIGURATION="Debug"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -17,8 +17,6 @@ IOS_SIM_DEVICE=${IOS_SIM_DEVICE:-} # use preferentially, otherwise will be set a
|
|||||||
ios_sim_default_device_type=${IOS_SIM_DEVICE_TYPE:-iPhone 5s}
|
ios_sim_default_device_type=${IOS_SIM_DEVICE_TYPE:-iPhone 5s}
|
||||||
ios_sim_default_ios_version=${IOS_SIM_OS:-iOS 10.1}
|
ios_sim_default_ios_version=${IOS_SIM_OS:-iOS 10.1}
|
||||||
|
|
||||||
ACCEPTED_LICENSES='MIT, ISC, BSD, Apache-2.0, BSD-2-Clause, BSD-3-Clause, WTFPL, Unlicense, (MIT AND CC-BY-3.0)'
|
|
||||||
|
|
||||||
PATH="/opt/android-sdk-linux/platform-tools:$PATH"
|
PATH="/opt/android-sdk-linux/platform-tools:$PATH"
|
||||||
SRCROOT=$(cd "$(dirname "$0")/.." && pwd)
|
SRCROOT=$(cd "$(dirname "$0")/.." && pwd)
|
||||||
XCPRETTY=$(which xcpretty || true)
|
XCPRETTY=$(which xcpretty || true)
|
||||||
@ -235,13 +233,15 @@ trap cleanup EXIT
|
|||||||
|
|
||||||
# Use a consistent version of Node if possible.
|
# Use a consistent version of Node if possible.
|
||||||
if [ -f "$NVM_DIR/nvm.sh" ]; then
|
if [ -f "$NVM_DIR/nvm.sh" ]; then
|
||||||
. "$NVM_DIR/nvm.sh"
|
. "$NVM_DIR/nvm.sh" || true
|
||||||
elif [ -x "$(command -v brew)" ] && [ -f "$(brew --prefix nvm)/nvm.sh" ]; then
|
elif [ -x "$(command -v brew)" ] && [ -f "$(brew --prefix nvm)/nvm.sh" ]; then
|
||||||
# we must be on mac and nvm was installed with brew
|
# we must be on mac and nvm was installed with brew
|
||||||
# TODO: change the mac slaves to use manual nvm installation
|
# TODO: change the mac slaves to use manual nvm installation
|
||||||
. "$(brew --prefix nvm)/nvm.sh"
|
. "$(brew --prefix nvm)/nvm.sh" || true
|
||||||
|
fi
|
||||||
|
if [[ "$(command -v nvm)" ]]; then
|
||||||
|
nvm install 6.5.0
|
||||||
fi
|
fi
|
||||||
[[ "$(command -v nvm)" ]] && nvm install 6.5.0 && nvm use 6.5.0 || true
|
|
||||||
|
|
||||||
# Remove cached packages
|
# Remove cached packages
|
||||||
rm -rf ~/.yarn-cache/npm-realm-*
|
rm -rf ~/.yarn-cache/npm-realm-*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user