mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
Use command -v
instead of which
(#1704)
`command -v` is the standardized version of `which`
This commit is contained in:
parent
5ae8fa5a3f
commit
362e3cd6ff
2 changed files with 5 additions and 5 deletions
|
@ -2,8 +2,8 @@
|
|||
|
||||
DIR=$1
|
||||
FILE=$2
|
||||
GIT=$(which git)
|
||||
SED=$(which sed)
|
||||
GIT=$(command -v git)
|
||||
SED=$(command -v sed)
|
||||
|
||||
if [ -d "${DIR}/.git/" ] && [ -n "${GIT}" ]
|
||||
then
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
# This code is released in public domain by Dave Davenport <qball@gmpclient.org>
|
||||
#
|
||||
|
||||
ROFI=$(which rofi)
|
||||
SED=$(which sed)
|
||||
MKTEMP=$(which mktemp)
|
||||
ROFI=$(command -v rofi)
|
||||
SED=$(command -v sed)
|
||||
MKTEMP=$(command -v mktemp)
|
||||
|
||||
if [ -z "${SED}" ]
|
||||
then
|
||||
|
|
Loading…
Reference in a new issue