Skip to content

Commit

Permalink
simplify exit_status assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
wyattscarpenter committed Sep 21, 2024
1 parent db419b0 commit af66625
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bin/git-repl
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,12 @@ while true; do

if [[ $cmd == !* ]]; then
eval ${cmd:1}
exit_status=$?
elif [[ $cmd == git* ]]; then
eval $cmd
exit_status=$?
else
eval git "$cmd"
exit_status=$?
fi
exit_status=$?
done

echo

0 comments on commit af66625

Please sign in to comment.