scripts/prepare-release: fix git error check
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -90,7 +90,7 @@ async function detectPatchVersionsForRef(repo, ref) {
|
||||
}
|
||||
} catch (error) {
|
||||
if (
|
||||
error.stderr?.match(/^fatal: Path .* exists on disk, but not in .*$/m)
|
||||
error.stderr?.match(/^fatal: Path .* exists on disk, but not in .*$/im)
|
||||
) {
|
||||
console.log(`Skipping new package ${pkg.packageJson.name}`);
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user