Skip to content

Commit

Permalink
update rit shell math calculate formula
Browse files Browse the repository at this point in the history
Signed-off-by: GuillaumeFalourd <[email protected]>
  • Loading branch information
GuillaumeFalourd committed Jun 23, 2021
1 parent bf6d77a commit 99abecd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shell/math/calculate/src/formula/formula.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/sh
runFormula() {
if [ "sum" -eq $OPERATION ]; then
if [[ "sum" = $OPERATION ]]; then
echo "rit shell math sum numbers --rit_number_one=$RIT_NUMBER_ONE --rit_number_two=$RIT_NUMBER_TWO"
elif [ "multiplication" -eq $OPERATION ]; then
elif [[ "multiplication" = $OPERATION ]]; then
echo "rit shell math multiply numbers --rit_number_one=$RIT_NUMBER_ONE --rit_number_two=$RIT_NUMBER_TWO"
else
echo "Unexpected operation type: $OPERATION"
Expand Down

0 comments on commit 99abecd

Please sign in to comment.