diff options
author | Anish Athalye <me@anishathalye.com> | 2019-11-09 12:40:20 -0500 |
---|---|---|
committer | Anish Athalye <me@anishathalye.com> | 2019-11-09 12:40:20 -0500 |
commit | 2dc876cd65fc21093cf54f6f7a9f6a2fa5971a45 (patch) | |
tree | 913088bd57d57e4dbdb337ad27145855a1fd0c9b /bin/dotbot | |
parent | 5bb3c8a3437a55726a6bed191b008eff2afcda00 (diff) | |
parent | d2913e6cee1de35fda33317c9e34edcaac4b97f0 (diff) |
Merge branch 'paulohefagundes/remove_which'
Diffstat (limited to 'bin/dotbot')
-rwxr-xr-x | bin/dotbot | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -7,9 +7,9 @@ # is useful because we don't know the name of the python binary. ''':' # begin python string; this line is interpreted by the shell as `:` -which python >/dev/null 2>&1 && exec python "$0" "$@" -which python3 >/dev/null 2>&1 && exec python3 "$0" "$@" -which python2 >/dev/null 2>&1 && exec python2 "$0" "$@" +command -v python >/dev/null 2>&1 && exec python "$0" "$@" +command -v python3 >/dev/null 2>&1 && exec python3 "$0" "$@" +command -v python2 >/dev/null 2>&1 && exec python2 "$0" "$@" >&2 echo "error: cannot find python" exit 1 ''' |