Skip to content

Commit 54fe311

Browse files
committed
fix update-keys flag
1 parent 2ef5ed6 commit 54fe311

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/secrets.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func NewCmdSecrets() *cobra.Command {
5353
if flags.updateKeys {
5454
globalSecretsPath := filepath.Join(k.String("dir"), ".smallweb", "secrets.enc.env")
5555
if stat, err := os.Stat(globalSecretsPath); err == nil && !stat.IsDir() {
56-
c := exec.Command("sops", "updatekeys", globalSecretsPath)
56+
c := exec.Command("sops", "updatekeys", "--yes", globalSecretsPath)
5757
c.Dir = k.String("dir")
5858

5959
if err := c.Run(); err != nil {
@@ -69,7 +69,7 @@ func NewCmdSecrets() *cobra.Command {
6969
for _, a := range apps {
7070
secretsPath := filepath.Join(k.String("dir"), a, "secrets.enc.env")
7171
if stat, err := os.Stat(secretsPath); err == nil && !stat.IsDir() {
72-
c := exec.Command("sops", "updatekeys", secretsPath)
72+
c := exec.Command("sops", "updatekeys", "--yes", secretsPath)
7373
c.Dir = k.String("dir")
7474

7575
if err := c.Run(); err != nil {

0 commit comments

Comments
 (0)