Use command -v which is in POSIX instead of which.

This commit is contained in:
Andrius Štikonas 2020-08-15 11:48:35 +01:00
parent 49e0da1d2a
commit 167587ccb9
1 changed files with 8 additions and 8 deletions

View File

@ -26,14 +26,14 @@ LCODE="lt" # Language code. Only 1 language is supported.
MDIR="mo"
# Binaries. Don't forget to install them before usign these scripts.
GIT=$(which git 2> /dev/null)
MSGFMT=$(which msgfmt 2> /dev/null)
MSGMERGE=$(which msgmerge 2> /dev/null)
MSGINIT=$(which msginit 2> /dev/null)
ISUTF8=$(which isutf8 2> /dev/null)
TAR=$(which tar 2> /dev/null)
BZIP=$(which bzip2 2> /dev/null)
DIFF=$(which diff 2> /dev/null)
GIT=$(command -v git 2> /dev/null)
MSGFMT=$(command -v msgfmt 2> /dev/null)
MSGMERGE=$(command -v msgmerge 2> /dev/null)
MSGINIT=$(command -v msginit 2> /dev/null)
ISUTF8=$(command -v isutf8 2> /dev/null)
TAR=$(command -v tar 2> /dev/null)
BZIP=$(command -v bzip2 2> /dev/null)
DIFF=$(command -v diff 2> /dev/null)
# Colors
RED="\033[1;31m"