File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ func addProjectActually(project *Project) {
53
53
func addProject (project * Project ) {
54
54
//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
55
55
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 )
57
57
if errr != nil {
58
58
panic (errr )
59
59
}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ var lsCmd = &cobra.Command{
17
17
Run : func (cmd * cobra.Command , args []string ) {
18
18
//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
19
19
filEnv := os .Getenv ("goproject" )
20
- file , err := os .ReadFile (filEnv + "\\ path.json" )
20
+ file , err := os .ReadFile (filEnv + "/ path.json" )
21
21
if err != nil {
22
22
panic (err )
23
23
}
You can’t perform that action at this time.
0 commit comments