You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [[ $(grep -c "error"${log_dir}/hadolint.log)!= 0 ]];then
12
13
$BOLD_RED&&echo"Error!! Please Click on the artifact button to download and check error details."&&$RESET
13
-
exit 1
14
+
echo$(grep "error"${log_dir}/hadolint.log)
15
+
ERROR_WARN=true
14
16
fi
15
17
16
18
if [[ $(grep -c "warning"${log_dir}/hadolint.log)!= 0 ]];then
17
19
$BOLD_RED&&echo"Warning!! Please Click on the artifact button to download and check warning details."&&$RESET
20
+
echo$(grep "warning"${log_dir}/hadolint.log)
21
+
ERROR_WARN=true
22
+
fi
23
+
24
+
if [ "$ERROR_WARN"=true ];then
25
+
echo$ERROR_WARN
18
26
exit 1
19
27
fi
20
28
$BOLD_PURPLE&&echo"Congratulations, Hadolint check passed!"&&$LIGHT_PURPLE&&echo" You can click on the artifact button to see the log details."&&$RESET
0 commit comments