Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[No QA][HybridApp] Fix is-hybrid-app.sh script #57484

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
15 changes: 13 additions & 2 deletions scripts/is-hybrid-app.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
#!/bin/bash
set -e

source scripts/shellUtils.sh

# Check if jq is installed
if ! jq --version > /dev/null 2>&1; then
error 'jq is not installed. Please install jq and try again' >&2
exit 1
fi

if [[ ! -d Mobile-Expensify ]]; then
echo false
exit 0
else
cd Mobile-Expensify
cd Mobile-Expensify || exit 1
fi

# Check if 'package.json' exists
Expand All @@ -17,6 +24,10 @@ if [[ -f package.json ]]; then
if [[ "$package_name" == "mobile-expensify" ]]; then
echo true
exit 0
else
echo "The package name is incorrect. It should be 'mobile-expensify'. Script will assume the standalone NewDot app."
echo false
exit 0
fi
else
echo "package.json not found in Mobile-Expensify"
Expand Down
Loading