Skip to content

Commit

Permalink
Strategically re-enable error forwarding to fail on python errors
Browse files Browse the repository at this point in the history
Looks like we had disabled these for testing some time ago, so,
reenabling them now with some additional useful options.
  • Loading branch information
countvajhula committed Mar 15, 2024
1 parent d82d93a commit b2a5f8a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# ensure that any errors encountered cause immediate
# termination with a non-zero exit code
set -e
set -euo pipefail

echo "PWD is: "
echo $(pwd)
Expand All @@ -28,16 +28,12 @@ git config --global user.email "[email protected]"
git config --global user.name "Old Abe"
git add abe/transactions.txt abe/attributions.txt abe/valuation.txt abe/itemized_payments.txt abe/advances.txt abe/debts.txt

set +e

git commit -m "Updated accounting records"
git fetch
git rebase origin/`git remote set-head origin -a | cut -d' ' -f4`
git push origin `git remote set-head origin -a | cut -d' ' -f4`
echo "... done."

set -e

echo "Running money_out script..."
echo balances=$(python -m oldabe.money_out) >> $GITHUB_OUTPUT
echo "... done."

0 comments on commit b2a5f8a

Please sign in to comment.