"Fossies" - the Fresh Open Source Software Archive

Member "jitsi-meet-7688/ios/scripts/run-packager.sh" (1 Dec 2023, 803 Bytes) of package /linux/misc/jitsi-meet-7688.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/bash
    2 
    3 # This script is executed from Xcode to start the React packager for Debug
    4 # targets.
    5 
    6 THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")")" && pwd)
    7 
    8 export RCT_METRO_PORT="${RCT_METRO_PORT:=8081}"
    9 echo "export RCT_METRO_PORT=${RCT_METRO_PORT}" > "${SRCROOT}/../../node_modules/react-native/scripts/.packager.env"
   10 
   11 if [[ "$CONFIGURATION" = "Debug" ]]; then
   12   if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then
   13     if ! curl -s "http://localhost:${RCT_METRO_PORT}/status" | grep -q "packager-status:running" ; then
   14       echo "Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly"
   15       exit 2
   16     fi
   17   else
   18     open -g "$THIS_DIR/run-packager-helper.command" || echo "Can't start packager automatically"
   19   fi
   20 fi