「✨」 feat: finished borg backup
This commit is contained in:
16
srcs/cmd/borg-backup/getpassphrase/getpassphrase.go
Normal file
16
srcs/cmd/borg-backup/getpassphrase/getpassphrase.go
Normal file
@ -0,0 +1,16 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"git.keyzox.me/42_adjoly/inception/internal/env"
|
||||
_log "git.keyzox.me/42_adjoly/inception/internal/log"
|
||||
)
|
||||
|
||||
func main(){
|
||||
pass := env.FileEnv("BORG_PASSPHRASE", "")
|
||||
if pass == "" {
|
||||
_log.Log("error", "Could not found passphrase")
|
||||
}
|
||||
fmt.Print(pass)
|
||||
}
|
Reference in New Issue
Block a user