From f096d0e23c15efbe3baefd6029f9f56255e87f08 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 18 Aug 2016 10:51:01 +1200 Subject: Fix up some command builtin calls --- sh/profile.d/keychain.sh | 4 ++-- sh/profile.d/pager.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sh/profile.d') diff --git a/sh/profile.d/keychain.sh b/sh/profile.d/keychain.sh index 55306ad4..a9725bec 100644 --- a/sh/profile.d/keychain.sh +++ b/sh/profile.d/keychain.sh @@ -1,11 +1,11 @@ # ssh-askpass setup -if command -v ssh-askpass >/dev/null 2>&1 ; then +if command -v ssh-askpass >/dev/null ; then SSH_ASKPASS=$(command -v ssh-askpass) export SSH_ASKPASS fi # keychain setup -if command -v keychain >/dev/null 2>&1 ; then +if command -v keychain >/dev/null ; then eval "$(TERM=${TERM:-ansi} keychain \ --eval --ignore-missing --quiet id_dsa id_rsa id_ecsda)" diff --git a/sh/profile.d/pager.sh b/sh/profile.d/pager.sh index 2cbcb26d..a74e6aa1 100644 --- a/sh/profile.d/pager.sh +++ b/sh/profile.d/pager.sh @@ -1,6 +1,6 @@ # If we don't have less(1), we'll just use whatever pager the application or # system deems fit -command less >/dev/null 2>&1 || return +command -v less >/dev/null || return # Use less(1) as my PAGER PAGER=less -- cgit v1.2.3