Skip to content

Commit db40765

Browse files
committed
Fix upgrade_status test script
1 parent 05b86c2 commit db40765

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

scripts/makefile/upgrade-status-validation.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ drush en -y upgrade_status
55

66
# Search for no issues message
77
REPORT=$(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
1919
fi

0 commit comments

Comments
 (0)