2024-02-14 19:58:45 +05:30
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
2024-08-05 12:48:35 +01:00
|
|
|
if pgrep -f "react-native start --port=${RCT_METRO_PORT:-8081}" > /dev/null; then
|
2024-04-01 16:47:48 +05:30
|
|
|
echo "Info: metro is already running in another terminal"
|
|
|
|
|
else
|
|
|
|
|
echo "Info: starting a new metro terminal"
|
2024-08-05 12:48:35 +01:00
|
|
|
react-native start --port=${RCT_METRO_PORT:-8081} --reset-cache
|
2024-04-01 16:47:48 +05:30
|
|
|
fi
|