File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 23
23
# Check puppet manifest syntax
24
24
$ERRORS_ONLY || echo -e " $( tput setaf 6) Checking puppet documentation for $manifest_name ...$( tput sgr0) "
25
25
if [[ $USE_PUPPET_FUTURE_PARSER != " enabled" ]]; then
26
- puppet strings --color=false " $1 " | grep -Eo -e ' ^\[warn\]:.*$' > " $error_msg "
26
+ puppet strings --color=false " $manifest_path " | grep -Eo -e ' ^\[warn\]:.*$' > " $error_msg "
27
27
else
28
- puppet strings --parser future --color=false " $1 " | grep -Eo -e ' ^\[warn\]:.*$' > " $error_msg "
28
+ puppet strings --parser future --color=false " $manifest_path " | grep -Eo -e ' ^\[warn\]:.*$' > " $error_msg "
29
29
fi
30
30
31
31
if [[ $? -ne 1 ]]; then
@@ -37,7 +37,7 @@ rm -f "$error_msg"
37
37
38
38
if [[ $documentations_errors -ne 0 ]]; then
39
39
if [[ $CHECK_PUPPET_DOCS == " permissive" ]] ; then
40
- echo -e " (tput setaf 6)Documentation checks in permissive mode. Commit won't be aborted$( tput sgr0) "
40
+ echo -e " $ ( tput setaf 6) Documentation checks in permissive mode. Commit won't be aborted$( tput sgr0) "
41
41
else
42
42
echo -e " $( tput setaf 1) Error: $documentations_errors faulty documentation(s) found in puppet manifests. Commit will be aborted.$( tput sgr0) "
43
43
exit 1
You can’t perform that action at this time.
0 commit comments