@@ -56,7 +56,7 @@ export async function makeEfi(this: Ovary, theme = 'eggs') {
5656
5757 if ( ! fs . existsSync ( GAE ) ) {
5858 if ( this . familyId === 'debian' ) {
59- console . log ( `error: cannot find ${ GAE } ` )
59+ Utils . error ( `error: ${ GAE } does not exist ` )
6060 if ( ! Utils . isi686 ( ) ) {
6161 process . exit ( 1 )
6262 }
@@ -193,7 +193,7 @@ export async function makeEfi(this: Ovary, theme = 'eggs') {
193193 }
194194
195195 if ( ! fs . existsSync ( splashSrc ) ) {
196- Utils . warning ( 'Cannot find: ' + splashSrc )
196+ Utils . warning ( `warning: ${ splashSrc } does not exists` )
197197 process . exit ( 1 )
198198 }
199199 await exec ( `cp ${ splashSrc } ${ splashDest } ` , this . echo )
@@ -207,7 +207,7 @@ export async function makeEfi(this: Ovary, theme = 'eggs') {
207207 // copy theme
208208 const themeDest = `${ isoDir } /boot/grub/theme.cfg`
209209 if ( ! fs . existsSync ( themeSrc ) ) {
210- Utils . warning ( 'Cannot find: ' + themeSrc )
210+ Utils . error ( `error: ${ themeSrc } does not exist` )
211211 process . exit ( 1 )
212212 }
213213 fs . copyFileSync ( themeSrc , themeDest )
@@ -237,7 +237,7 @@ export async function makeEfi(this: Ovary, theme = 'eggs') {
237237 }
238238
239239 if ( ! fs . existsSync ( grubTemplate ) ) {
240- Utils . warning ( 'Cannot find: ' + grubTemplate )
240+ Utils . error ( `error: ${ grubTemplate } does not exist` )
241241 process . exit ( 1 )
242242 }
243243
@@ -321,7 +321,7 @@ function srcGAE(): string {
321321function srcGAES ( ) : string {
322322 let signedGrub = `/usr/lib/grub/${ Utils . uefiFormat ( ) } -signed/${ nameGAES ( ) } ` ;
323323 if ( ! fs . existsSync ( signedGrub ) ) {
324- Utils . warning ( `cannot find ${ signedGrub } ` )
324+ Utils . warning ( `warning: ${ signedGrub } does not exist ` )
325325 }
326326 return signedGrub
327327}
0 commit comments