[Lsb-messages] /var/www/bzr/lsb/devel/puppet-lsb r725: Another tweak to the puppet report script.

Jeff Licquia licquia at linuxfoundation.org
Thu Feb 22 20:16:55 UTC 2018


------------------------------------------------------------
revno: 725
committer: Jeff Licquia <licquia at linuxfoundation.org
branch nick: puppet-lsb
timestamp: Thu 2018-02-22 15:16:55 -0500
message:
  Another tweak to the puppet report script.
modified:
  modules/puppet/files/puppet-agent-health-report
-------------- next part --------------
=== modified file 'modules/puppet/files/puppet-agent-health-report'
--- a/modules/puppet/files/puppet-agent-health-report	2018-02-22 14:02:44 +0000
+++ b/modules/puppet/files/puppet-agent-health-report	2018-02-22 20:16:55 +0000
@@ -26,7 +26,7 @@
 [ 0${HASTEMP} -lt 01 ] && {
 	TEMP_PATH=$(mktemp -d --tmpdir ${BAS}.XXXXXXXXXX)
 	}
-TEMP_PATH=`ls /tmp/* | grep "${BAS}" | sort | tail -1 `
+TEMP_PATH=`ls -d /tmp/* | grep "${BAS}" | sort | tail -1 `
 [ "x${TEMP_PATH}" = "x" ] && {
 	echo "error: cannot see a working TEMP_PATH for ${BAS} " 1>&2
 	echo " ... bailing" 1>&2



More information about the lsb-messages mailing list