Skip to content

Commit

Permalink
Redirect all type output
Browse files Browse the repository at this point in the history
  • Loading branch information
mbish committed Sep 27, 2023
1 parent 927c5ff commit 7d52fa8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions duo_unix_support/duo_unix_support.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ else
fi

if [ "$OS" = "solaris" ]; then
if type ggrep >/dev/null; then
if type ggrep &>/dev/null; then
GREP=ggrep
fi
else
Expand All @@ -127,11 +127,11 @@ echo "openssl_version=${OPENSSL_VER}" >> configuration.txt
echo "ssh=$(ssh -V 2>&1)" &>> configuration.txt
echo -e "\nGathering logs and pam configs"
# Check if the user has gcc and make
if type gcc >/dev/null; then
if type gcc &>/dev/null; then
GCC_VER=$(gcc --version)
echo "gcc=$GCC_VER" | $GREP "gcc" >> configuration.txt
fi
if type make >/dev/null; then
if type make &>/dev/null; then
MAKE_VER=$(make --version)
echo "make=$MAKE_VER" | $GREP "make" >> configuration.txt
fi
Expand Down

0 comments on commit 7d52fa8

Please sign in to comment.