From 0f5ca2208650c550a2675dedfae27306ea0043c9 Mon Sep 17 00:00:00 2001 From: Leonora Tindall Date: Wed, 19 Aug 2026 11:05:28 -0500 Subject: [PATCH] use command -v instead of which --- dnote | 4 ++-- gnote | 4 ++-- mnote | 4 ++-- ynote | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dnote b/dnote index 47d8a2f..ef7f3ae 100755 --- a/dnote +++ b/dnote @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -euo pipefail -if [ -f "$(which nnote)" ]; then - NNOTE="$(which nnote)" +if [ -f "$(command -v nnote)" ]; then + NNOTE="$(command -v nnote)" else NOTEBIN="$( dirname -- "$( readlink -f -- "$0"; )"; )" NNOTE="$NOTEBIN/nnote" diff --git a/gnote b/gnote index 4708494..0da0622 100755 --- a/gnote +++ b/gnote @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -euo pipefail -if [ -f "$(which nnote)" ]; then - NNOTE="$(which nnote)" +if [ -f "$(command -v nnote)" ]; then + NNOTE="$(command -v nnote)" else NOTEBIN="$( dirname -- "$( readlink -f -- "$0"; )"; )" NNOTE="$NOTEBIN/nnote" diff --git a/mnote b/mnote index 1499aa6..055adf0 100755 --- a/mnote +++ b/mnote @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -euo pipefail -if [ -f "$(which nnote)" ]; then - NNOTE="$(which nnote)" +if [ -f "$(command -v nnote)" ]; then + NNOTE="$(command -v nnote)" else NOTEBIN="$( dirname -- "$( readlink -f -- "$0"; )"; )" NNOTE="$NOTEBIN/nnote" diff --git a/ynote b/ynote index 1cd1c21..eb8963a 100755 --- a/ynote +++ b/ynote @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -euo pipefail -if [ -f "$(which nnote)" ]; then - NNOTE="$(which nnote)" +if [ -f "$(command -v nnote)" ]; then + NNOTE="$(command -v nnote)" else NOTEBIN="$( dirname -- "$( readlink -f -- "$0"; )"; )" NNOTE="$NOTEBIN/nnote"