File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -62,17 +62,20 @@ tflint_() {
62
62
tflint_final_exit_code=0
63
63
for path_uniq in $( echo " ${paths[*]} " | tr ' ' ' \n' | sort -u) ; do
64
64
path_uniq=" ${path_uniq// __REPLACED__SPACE__/ } "
65
+ pushd " $path_uniq " > /dev/null
65
66
66
67
# Print checked PATH **only** if TFLint have any messages
67
68
# shellcheck disable=SC2091 # Suppress error output
68
- $( tflint " ${ARGS[@]} " $path_uniq 2>&1 ) 2> /dev/null || {
69
+ $( tflint " ${ARGS[@]} " 2>&1 ) 2> /dev/null || {
69
70
echo >&2 -e " \033[1;33m\nTFLint in $path_uniq /:\033[0m"
70
- tflint " ${ARGS[@]} " $path_uniq
71
+ tflint " ${ARGS[@]} "
71
72
}
72
73
local exit_code=$?
73
74
if [ $exit_code != 0 ]; then
74
75
tflint_final_exit_code=$exit_code
75
76
fi
77
+
78
+ popd > /dev/null
76
79
done
77
80
set -e
78
81
exit $tflint_final_exit_code
You can’t perform that action at this time.
0 commit comments