From d7817aa3e4d8affbc83f8ce8bff202e75325b030 Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Sat, 30 May 2020 20:25:02 -0500 Subject: [PATCH] hashycorp --- gravity-sync.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gravity-sync.sh b/gravity-sync.sh index 8429006..15dc3d3 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -843,7 +843,7 @@ function detect_sshkeygen { MESSAGE="Attempting to Compensate" echo_info - if is_command dropbearkey + if hash dropbearkey 2>/dev/null then MESSAGE="Using DROPBEARKEY Instead" echo_info @@ -868,16 +868,16 @@ function detect_sshkeygen { ## Detect Package Manager function distro_check { - if is_command apt-get + if hash apt-get 2>/dev/null then PKG_MANAGER="apt-get" PKG_INSTALL="${PKG_MANAGER} --yes --no-install-recommends install" - elif is_command rpm + elif hash rpm 2>/dev/null then - if is_command dnf + if hash dnf 2>/dev/null then PKG_MANAGER="dnf" - elif is_command yum + elif hash yum 2>/dev/null then PKG_MANAGER="yum" else