Skip to content

Commit

Permalink
fix(x): fix a regex used to find python executable
Browse files Browse the repository at this point in the history
  • Loading branch information
ismailarilik committed Nov 6, 2024
1 parent 2796048 commit e0b98c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ for SEARCH_PYTHON in py python3 python python2; do
fi
done

python=$(bash -c "compgen -c python" | grep '^python[2-3]\.[0-9]\+$' | head -n1)
python=$(bash -c "compgen -c python" | grep '^python[2-3]\.[0-9]+$' | head -n1)
if ! [ "$python" = "" ]; then
exec "$python" "$xpy" "$@"
fi
Expand Down

0 comments on commit e0b98c7

Please sign in to comment.