From 0b7369272c6ac347c6f1c1ca01b741edf649b4b6 Mon Sep 17 00:00:00 2001 From: David Lutterkort Date: Mon, 26 Jun 2017 12:28:57 -0700 Subject: [PATCH] contrib/statpack: fix nonsensical way to check for augparse --- contrib/statpack | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/statpack b/contrib/statpack index cfdf62e..1edf5c8 100755 --- a/contrib/statpack +++ b/contrib/statpack @@ -42,7 +42,8 @@ cp -pr ${topdir}/data ral # # Snarf up some augeas lenses that we need # -if [ ! -x augparse ] +augp=$(command -v augparse) +if [ -z "$augp" ] then if [ -x /opt/puppetlabs/puppet/bin/augparse ]; then export PATH=$PATH:/opt/puppetlabs/puppet/bin