Skip to content

Commit 2ffffcd

Browse files
author
electricface
committed
fix(adjust-grub-theme): failed to set background if theme output dir not exist
1 parent e3ca6dd commit 2ffffcd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

adjust-grub-theme/main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,10 @@ func copyBgSource(filename string) error {
395395
return err
396396
}
397397

398+
err = os.MkdirAll(optThemeOutputDir, 0755)
399+
if err != nil {
400+
return err
401+
}
398402
_, err = copyFile(filename, dstFile)
399403
return err
400404
}

0 commit comments

Comments
 (0)