Archived
1
0
This repository has been archived on 2025-05-13. You can view files and clone it, but cannot push or open issues or pull requests.
Files
inception/srcs/cmd/borg-backup/getpassphrase/getpassphrase.go
2025-03-03 21:16:45 +01:00

17 lines
285 B
Go

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)
}