Skip to content

Commit 43254f0

Browse files
committed
Write the env filename to env
To make it easer to determine where to edit.
1 parent 5626fb7 commit 43254f0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎main.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,10 @@ func createEnvSourceFromCurrentDir() (string, error) {
6666

6767
if envFromFile != "" {
6868
envSetScript.WriteString(envFromFile)
69+
envSetScript.WriteString(fmt.Sprintf("export FIRSTUPDOTENV_FILE=%s\n", filepath.Join(directory, nameDotEnv)))
6970
} else {
7071
envSetScript.WriteString(fmt.Sprintf("unset %s\n", currentSetEnvVar))
72+
envSetScript.WriteString(fmt.Sprintf("unset FIRSTUPDOTENV_FILE\n"))
7173
}
7274

7375
return envSetScript.String(), nil

0 commit comments

Comments
 (0)