File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,15 @@ drush en -y upgrade_status
55
66# Search for no issues message
77REPORT=$( drush us-a --all --ignore-contrib --ignore-uninstalled)
8- IS_VALID =$( echo " $REPORT " | grep " No known issues found. " )
8+ IS_INVALID =$( echo " $REPORT " | grep " FILE: " )
99
10- # Exit1 and alert if message not found
11- if [ -z " $IS_VALID " ]; then
12- printf " There are \033[1missue(s)\033[0m in Upgrade Status report to fix : \n- Go to \033[1m/admin/reports/upgrade-status\033[0m for more details\n"
13- echo -e " $REPORT "
14- exit 1
15- else
10+ # Exit 1 and alert if at least one file was reported.
11+ if [ -z " $IS_INVALID " ]; then
1612 drush pmu upgrade_status -y
1713 echo -e " Status report is valid : No error listed"
1814 exit 0
15+ else
16+ printf " There are \033[1missue(s)\033[0m in Upgrade Status report to fix : \n- Go to \033[1m/admin/reports/upgrade-status\033[0m for more details\n"
17+ echo -e " $REPORT "
18+ exit 1
1919fi
You can’t perform that action at this time.
0 commit comments