Skip to content

Commit

Permalink
change path for path.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Dar-rius committed Nov 2, 2022
1 parent c34566f commit be27fb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func addProjectActually(project *Project) {
func addProject(project *Project) {
//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
filEnv := os.Getenv("goproject")
_, errr := os.OpenFile(filEnv+"\\path.json", os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0600)
_, errr := os.OpenFile(filEnv+"/path.json", os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0600)
if errr != nil {
panic(errr)
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/ls.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var lsCmd = &cobra.Command{
Run: func(cmd *cobra.Command, args []string) {
//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
filEnv := os.Getenv("goproject")
file, err := os.ReadFile(filEnv + "\\path.json")
file, err := os.ReadFile(filEnv + "/path.json")
if err != nil {
panic(err)
}
Expand Down

0 comments on commit be27fb9

Please sign in to comment.