Skip to content

Commit

Permalink
Comment out debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin committed Jun 7, 2024
1 parent 301ab6e commit 3cb2244
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions scripts/i18n-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ function main() {
# if [[ -n $FLAG_VERBOSE ]]; then echo -e "All targets: $TARGETS"; fi
fi

set -x
git branch -vv
# set -x
# git branch -vv

SYNCED=1
for f in $TARGETS; do
Expand All @@ -123,14 +123,14 @@ function main() {
if [[ -z $LASTCOMMIT ]]; then
# Get last commit of `main` that this branch is rooted from.
LASTCOMMIT=$(git merge-base main HEAD)
elif ! git branch --contains $LASTCOMMIT | grep -q "^\s*main\b"; then # HERE
# Get last commit of `main` that this branch is rooted from.
LASTCOMMIT=$(git merge-base main HEAD)
fi

if ! (git branch --contains $LASTCOMMIT | grep -q "^\s*main\b"); then
echo "Something is wrong, the hash is empty or isn't on 'main', aborting: $LASTCOMMIT - $f"
exit 2
# elif ! git branch --contains $LASTCOMMIT | grep -q "^\s*main\b"; then # HERE
# # Get last commit of `main` that this branch is rooted from.
# LASTCOMMIT=$(git merge-base main HEAD)
# fi

# if ! (git branch --contains $LASTCOMMIT | grep -q "^\s*main\b"); then
# echo "Something is wrong, the hash is empty or isn't on 'main', aborting: $LASTCOMMIT - $f"
# exit 2
fi

if [[ -n $FLAG_UPDATE ]]; then
Expand Down

0 comments on commit 3cb2244

Please sign in to comment.