Skip to content

Commit

Permalink
correct argument passing
Browse files Browse the repository at this point in the history
  • Loading branch information
codec committed Sep 11, 2011
1 parent 5b7d7ae commit 2634593
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions puppet-lint
Expand Up @@ -6,10 +6,10 @@

LINT="/var/lib/gems/1.8/bin/puppet-lint"

find $1 -iname "*pp" | while read file; do
find "$*" -iname "*pp" | while read file; do
_TMP=$(mktemp -p /tmp/ puppet-lint.XXXX)
echo "# puppet-lint ${file}"
${LINT} ${file} > ${_TMP}
${LINT} "${file}" > ${_TMP}

_WARN=$(grep ^WARNING ${_TMP} | wc -l)
_ERR=$(grep ^ERROR ${_TMP} | wc -l)
Expand Down

0 comments on commit 2634593

Please sign in to comment.