mirror of
https://github.com/unraid/api.git
synced 2026-01-19 06:59:40 -06:00
fix(plg): checks for NAME in the description rather than 'Unraid'
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user