diff --git a/drone/encrypt/encrypt.go b/drone/encrypt/encrypt.go index 0ee624c..4bee398 100644 --- a/drone/encrypt/encrypt.go +++ b/drone/encrypt/encrypt.go @@ -43,7 +43,8 @@ func encryptSecret(c *cli.Context) error { plaintext := c.Args().Get(1) if strings.HasPrefix(plaintext, "@") { - data, err := ioutil.ReadFile(plaintext) + path := strings.TrimPrefix(plaintext, "@") + data, err := ioutil.ReadFile(path) if err != nil { return err }