mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-08-28 12:56:31 -04:00
16 lines
477 B
Go
16 lines
477 B
Go
package core
|
|
|
|
import (
|
|
"github.com/rwinkhart/go-boilerplate/back"
|
|
"github.com/rwinkhart/libmutton/global"
|
|
"github.com/rwinkhart/rcw/wrappers"
|
|
)
|
|
|
|
// RCWSanityCheckGen generates the RCW sanity check file for libmutton.
|
|
func RCWSanityCheckGen(passphrase []byte) {
|
|
err := wrappers.GenSanityCheck(global.ConfigDir+global.PathSeparator+"sanity.rcw", passphrase)
|
|
if err != nil {
|
|
back.PrintError("Failed to generate sanity check file: "+err.Error(), back.ErrorWrite, true)
|
|
}
|
|
}
|