Skip to content

Commit 0207a3f

Browse files
anton-bAnton Benkevich
andauthored
Fallback to python3 in case no particular python is found (#65)
Co-authored-by: Anton Benkevich <[email protected]>
1 parent 2f2df20 commit 0207a3f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/validate_my_definition.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ elif command -v python3.7; then
99
PYTHON=python3.7
1010
elif command -v python3.6; then
1111
PYTHON=python3.6
12+
elif command -v python3; then
13+
PYTHON=python3
1214
else
1315
echo "No suitable python3 interpreter is found"
1416
exit 1
@@ -24,4 +26,4 @@ if $PYTHON -m venv $TEMP; then
2426
else
2527
$PYTHON $TEMP/validate_my_definition.py -d $1 && rm -rf $TEMP
2628
fi
27-
fi
29+
fi

0 commit comments

Comments
 (0)