Created
March 8, 2023 17:23
-
-
Save Sarverott/d33c4e46924a105f4e32001273101ed9 to your computer and use it in GitHub Desktop.
idea of unification of python version detection while lounching
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ $(cat "$1" |grep "print " -c) == 0 ]; | |
then | |
python2 "$1"; | |
else | |
python3 "$1"; | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment