We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5036110 commit 71e7400Copy full SHA for 71e7400
scripts/makefile/upgrade-status-validation.sh
@@ -1,15 +1,17 @@
1
#!/usr/bin/env sh
2
3
# Enable Upgrade Status module
4
-drush en -y upgrade_status
+drush pm:enable upgrade_status -y
5
+
6
+# Clear drush cache
7
+drush cc drush
8
9
# Search for no issues message
-REPORT=$(drush us-a --all --ignore-contrib --ignore-uninstalled)
10
+REPORT=$(drush upgrade_status:analyze --all --ignore-contrib --ignore-uninstalled)
11
IS_INVALID=$(echo "$REPORT" | grep "FILE:")
12
13
# Exit 1 and alert if at least one file was reported.
14
if [ -z "$IS_INVALID" ]; then
- drush pmu upgrade_status -y
15
echo -e "Status report is valid : No error listed"
16
exit 0
17
else
0 commit comments