Skip to content

Commit

Permalink
feat: Remove nested subshell check
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Dec 16, 2023
1 parent 8b71cb2 commit 538169a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/cmd/cdcmd.go
@@ -1,7 +1,6 @@
package cmd

import (
"errors"
"fmt"
"os"

Expand Down Expand Up @@ -36,9 +35,6 @@ func (c *Config) newCDCmd() *cobra.Command {
}

func (c *Config) runCDCmd(cmd *cobra.Command, args []string) error {
if _, ok := os.LookupEnv("CHEZMOI_SUBSHELL"); ok {
return errors.New("already in a chezmoi subshell")
}
os.Setenv("CHEZMOI_SUBSHELL", "1")

cdCommand, cdArgs, err := c.cdCommand()
Expand Down

0 comments on commit 538169a

Please sign in to comment.