task支持运行pyc

This commit is contained in:
chiupam 2022-01-06 10:53:04 +08:00
parent 2ebb7c9752
commit 67b1efb7bd

View File

@ -10,7 +10,7 @@ define_program() {
local first_param=$1
if [[ $first_param == *.js ]]; then
which_program="node"
elif [[ $first_param == *.py ]]; then
elif [[ $first_param == *.py ]] || [[ $first_param == *.pyc ]]; then
which_program="python3"
elif [[ $first_param == *.sh ]]; then
which_program="bash"