mirror of
https://github.com/status-im/status-react.git
synced 2025-01-10 11:06:25 +00:00
Jakub Sokołowski
de53581ef4
changes: - Stops scripts/generate-keystore.sh runnig for every new TARGET=android shell - Moves running scripts/generate-keystore.sh to keystore Makefile target - Makes generate-keystore.sh accept STATUS_RELEASE_STORE_FILE as env variable - Fixes error about missing lsof from start-react-native.sh - Fixes error about unknown -keystore command in scripts/generate-keystore.sh - Fixes getting OS_NAME without calling Nix shell - Fixes getting TMP_BUILD_NUMBER without calling Nix shell - Adds lsof used in start-react-native.sh to Android release Nix derivation - Simplified how nix/scripts/build.sh appends the --keep flag - Made use of colors.sh in more scripts Signed-off-by: Jakub Sokołowski <jakub@status.im>
17 lines
587 B
Bash
Executable File
17 lines
587 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
GIT_ROOT=$(cd "${BASH_SOURCE%/*}" && git rev-parse --show-toplevel)
|
|
source "${GIT_ROOT}/scripts/colors.sh"
|
|
|
|
METRO_PORT=8081
|
|
METRO_PID="$(lsof -i :${METRO_PORT} | awk 'NR!=1 {print $2}' | sort -u | tr '\r\n' ' ')"
|
|
if [ ! -z "$METRO_PID" ]; then
|
|
echo -e "${YLW}TCP port ${METRO_PORT} is required by the Metro packager.\nThe following processes currently have the port open, preventing Metro from starting:${RST}"
|
|
ps -fp $METRO_PID
|
|
echo -e "${YLW}Do you want to terminate them (y/n)?${RST}"
|
|
read -n 1 term
|
|
[[ $term == 'y' ]] && kill $METRO_PID
|
|
fi
|
|
|
|
yarn start
|