fix(plg): checks for NAME in the description rather than 'Unraid'

This commit is contained in:
Eric Schultz
2020-09-18 17:26:28 -05:00
parent 5a4e99ff77
commit 295e150f62

View File

@@ -731,7 +731,7 @@ if (!file_exists('/boot/.git/info/exclude')) {
}
// setup a nice git description
if (!file_exists('/boot/.git/description') || strpos(file_get_contents('/boot/.git/description'),'Unraid') === false) {
if (!file_exists('/boot/.git/description') || strpos(file_get_contents('/boot/.git/description'),$var['NAME']) === false) {
file_put_contents('/boot/.git/description', 'Unraid flash drive for '.$var['NAME']."\n");
}