Skip to content

Commit

Permalink
fix path of FsGuard executable
Browse files Browse the repository at this point in the history
  • Loading branch information
taukakao authored Jul 4, 2024
1 parent 22ee665 commit 623ebc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func signFileList(module *FsGuardModule) {
mainCommands = append(mainCommands, "cat /FsGuard/filelist.minisig >> /FsGuard/signature")
mainCommands = append(mainCommands, "echo -n \"----begin second attach----\" >> /FsGuard/signature")
mainCommands = append(mainCommands, fmt.Sprintf("tail -n1 %s/minisign.pub >> /FsGuard/signature", module.KeyPath))
mainCommands = append(mainCommands, "cat /FsGuard/signature >> /sources/FsGuard")
mainCommands = append(mainCommands, fmt.Sprintf("cat /FsGuard/signature >> /sources/%s/FsGuard", module.Name))
}

//export BuildModule
Expand Down Expand Up @@ -117,7 +117,7 @@ func BuildModule(moduleInterface *C.char, recipeInterface *C.char) *C.char {
return C.CString(fmt.Sprintf("ERROR: %s", err.Error()))
}

cleanCommands = append(cleanCommands, fmt.Sprintf("mv /sources/FsGuard %s", module.FsGuardLocation))
cleanCommands = append(cleanCommands, fmt.Sprintf("mv /sources/%s/FsGuard %s", module.Name, module.FsGuardLocation))

if module.GenerateKey {
prepCommands = append(prepCommands, "minisign -WG -s ./minisign.key")
Expand Down

0 comments on commit 623ebc6

Please sign in to comment.