diff --git a/gitinfo.install b/gitinfo.install
index b9727c9..2af7e85 100644
--- a/gitinfo.install
+++ b/gitinfo.install
@@ -90,7 +90,11 @@ function gitinfo_requirements($phase) {
$gitdirs = array_filter(explode(PHP_EOL, $gitdirs));
// Generate a status report error message if no GIT folders were found.
if (empty($gitdirs)) {
- $value = $gitversion . t("No git folders can be detected. Check the folder permissions or run %command first to update the Linux 'locate' cache. On OSX this is %command_osx.", ['%command' => "'sudo updatedb'", '%command_osx' => "'sudo /usr/libexec/locate.updatedb'"]) . '
' . $dirsinfo;
+ $gitinfo = [
+ '#markup' => '
' . t("No git folders can be detected. Check the folder permissions or run %command first to update the Linux 'locate' cache. On OSX this is %command_osx.", ['%command' => "'sudo updatedb'", '%command_osx' => "'sudo /usr/libexec/locate.updatedb'"]) . '
', + ]; + $value = [$gitversion, $dirsinfo, $gitinfo]; + $value['#attached']['library'][] = 'gitinfo/gitinfo'; $severity = REQUIREMENT_WARNING; } else {