From 167587ccb92251843b6bce2f0c33889b29d9b5c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Sat, 15 Aug 2020 11:48:35 +0100 Subject: [PATCH] Use command -v which is in POSIX instead of which. --- variables | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/variables b/variables index 1a500f0..906b207 100644 --- a/variables +++ b/variables @@ -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"