Skip to content

Commit

Permalink
Fix shellcheck lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
staszekscp committed Oct 3, 2024
1 parent e567ee3 commit daa0ad6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts/check-for-old-dot-changes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if [[ "$IS_HYBRID_APP_REPO" == "true" ]]; then

# Count the number of commits behind
UPSTREAM=${1:-'@{u}'}
COMMITS_BEHIND=$(git rev-list --count HEAD..$UPSTREAM)
COMMITS_BEHIND=$(git rev-list --count HEAD.."$UPSTREAM")

if [[ $COMMITS_BEHIND -eq 0 ]]; then
echo -e "\n${GREEN}OldDot repository is up to date!${NC}"
Expand Down
8 changes: 3 additions & 5 deletions scripts/run-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ SCHEME="New Expensify Dev"
APP_ID="com.expensify.chat.dev"

GREEN='\033[1;32m'
YELLOW='\033[1;33m'
RED='\033[1;31m'
NC='\033[0m'

Expand Down Expand Up @@ -60,19 +59,18 @@ fi
# Check if the argument is one of the desired values
case "$BUILD" in
--ios)
npx react-native run-ios --list-devices --mode $IOS_MODE --scheme $SCHEME
npx react-native run-ios --list-devices --mode $IOS_MODE --scheme "$SCHEME"
;;
--ipad)
npx react-native run-ios --simulator "iPad Pro (12.9-inch) (6th generation)" --mode $IOS_MODE --scheme $SCHEME
npx react-native run-ios --simulator "iPad Pro (12.9-inch) (6th generation)" --mode $IOS_MODE --scheme "$SCHEME"
;;
--ipad-sm)
npx react-native run-ios --simulator "iPad Pro (11-inch) (4th generation)" --mode $IOS_MODE --scheme $SCHEME
npx react-native run-ios --simulator "iPad Pro (11-inch) (4th generation)" --mode $IOS_MODE --scheme "$SCHEME"
;;
--android)
npx react-native run-android --list-devices --mode $ANDROID_MODE --appId $APP_ID --active-arch-only
;;
*)
print_error_and_exit
exit 1
;;
esac

0 comments on commit daa0ad6

Please sign in to comment.