Skip to content

Commit be27fb9

Browse files
committed
change path for path.json
1 parent c34566f commit be27fb9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/add.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func addProjectActually(project *Project) {
5353
func addProject(project *Project) {
5454
//the environment variable is stored in a variable in order to create and find the path.json file in the directory where the app is located
5555
filEnv := os.Getenv("goproject")
56-
_, errr := os.OpenFile(filEnv+"\\path.json", os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0600)
56+
_, errr := os.OpenFile(filEnv+"/path.json", os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0600)
5757
if errr != nil {
5858
panic(errr)
5959
}

cmd/ls.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var lsCmd = &cobra.Command{
1717
Run: func(cmd *cobra.Command, args []string) {
1818
//the environment variable is stored in a variable in order to create and find the path.json file in the directory where the app is located
1919
filEnv := os.Getenv("goproject")
20-
file, err := os.ReadFile(filEnv + "\\path.json")
20+
file, err := os.ReadFile(filEnv + "/path.json")
2121
if err != nil {
2222
panic(err)
2323
}

0 commit comments

Comments
 (0)