pantheon.updateScript: add a throw
This commit is contained in:
parent
0b59f4212c
commit
47a9e8783a
1 changed files with 3 additions and 1 deletions
|
@ -29,6 +29,8 @@ let
|
|||
chmod +x $out
|
||||
'';
|
||||
|
||||
versionFlag = { "release" = "-r"; "master" = "-m"; }.${versionPolicy};
|
||||
throwFlag = throw "${versionPolicy} is not a valid versionPolicy - Options are either 'release' or 'master' (defaults to release).";
|
||||
|
||||
versionFlag = { "release" = "-r"; "master" = "-m"; }.${versionPolicy} or throwFlag;
|
||||
|
||||
in [ updateScript versionFlag repoName attrPath ]
|
||||
|
|
Loading…
Reference in a new issue