Skip to content

Commit 4c140c1

Browse files
author
Matthias Koeppe
committed
src/bin/sage: Add missing 'exit 1' to stop fallthrough
1 parent 272582b commit 4c140c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bin/sage

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,6 +1001,7 @@ if [ "$1" = '-tox' -o "$1" = '--tox' ]; then
10011001
exec tox -c "$SAGE_SRC" "$@"
10021002
else
10031003
echo "Run 'sage -i tox' to install"
1004+
exit 1
10041005
fi
10051006
else
10061007
echo >&2 "error: Sage source directory or tox.ini not available"
@@ -1022,6 +1023,7 @@ if [ "$1" = '-pytest' -o "$1" = '--pytest' ]; then
10221023
exec pytest --rootdir="$SAGE_SRC" --doctest-modules "$@" "$SAGE_SRC"
10231024
else
10241025
echo "Run 'sage -i pytest' to install"
1026+
exit 1
10251027
fi
10261028
else
10271029
echo >&2 "error: Sage source directory or tox.ini not available"

0 commit comments

Comments
 (0)