[Backport release-24.11] factorio: fix updateScript definition (#359021)

This commit is contained in:
Luke Granger-Brown 2024-11-25 15:01:37 +00:00 committed by GitHub
commit f33cc1517f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -201,15 +201,7 @@ let
$out/bin/factorio
'';
passthru.updateScript =
if (username != "" && token != "") then
[
./update.py
"--username=${username}"
"--token=${token}"
]
else
null;
passthru.updateScript = ./update.py;
meta = {
description = "Game in which you build and maintain factories";