mirror of
https://github.com/packwiz/packwiz.git
synced 2025-11-19 01:24:32 +01:00
github: check + fail if there are no assets matching regex
Signed-off-by: unilock <unilock@fennet.rentals>
This commit is contained in:
@@ -134,6 +134,10 @@ func installRelease(repo Repo, release Release, regex string, pack core.Pack) er
|
||||
}
|
||||
}
|
||||
|
||||
if len(files) == 0 {
|
||||
return errors.New("release doesn't have any assets matching regex")
|
||||
}
|
||||
|
||||
if len(files) > 1 {
|
||||
// TODO: also print file names
|
||||
return errors.New("release has more than one asset matching regex")
|
||||
|
||||
Reference in New Issue
Block a user