Exclude more characters from digestfile name

Signed-off-by: Tim Etchells <tetchell@redhat.com>
This commit is contained in:
Tim Etchells 2021-01-08 09:57:51 -05:00 committed by Tim Etchells
parent 2d063fde99
commit b038efb70a
3 changed files with 6 additions and 3 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -44,7 +44,10 @@ export async function run(): Promise<void> {
const creds: string = `${username}:${password}`; const creds: string = `${username}:${password}`;
const digestFile = digestFileInput || `${imageToPush.replace(":", "_")}_digest.txt`; let digestFile = digestFileInput;
if (!digestFile) {
digestFile = `${imageToPush.replace(/[/\\/?%*:|"<>]/g, "-")}_digest.txt`;
}
const args = [ 'push', const args = [ 'push',
'--quiet', '--quiet',