Skip to content

Commit

Permalink
fix:[#384] disallow updating built-in stacks
Browse files Browse the repository at this point in the history
- throw error if stack is built-in
- add english translation for update built-in stack error
  • Loading branch information
jardon committed Oct 16, 2024
1 parent 9c10e8c commit 7c954d2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/stacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,11 @@ func updateStack(cmd *cobra.Command, args []string) error {
return error
}

if stack.BuiltIn {
cmdr.Error.Println(apx.Trans("stacks.update.error.builtIn"))
os.Exit(126)
}

if base == "" {
if !assumeYes {
cmdr.Info.Printfln(apx.Trans("stacks.update.info.askBase"), stack.Base)
Expand Down

0 comments on commit 7c954d2

Please sign in to comment.