@@ -45,7 +45,7 @@ func getEnvList() []string {
45
45
func registerEnvs () {
46
46
for _ , v := range getEnvList () {
47
47
wd , _ := os .Getwd ()
48
- filePath := strings .Join ([]string {wd , "\\ " , v }, "" )
48
+ filePath := strings .Join ([]string {wd , "/ " , v }, "" )
49
49
50
50
wErr := watcher .Add (filePath )
51
51
nilChecker (wErr )
@@ -78,7 +78,7 @@ func updateEnvs() {
78
78
nilChecker (rErr )
79
79
80
80
wrapDirName := "config"
81
- wrapDirPath := strings .Join ([]string {wd , "\\ " , wrapDirName , "\\ " }, "" )
81
+ wrapDirPath := strings .Join ([]string {wd , "/ " , wrapDirName , "/ " }, "" )
82
82
wrapEnvName := strings .Join ([]string {v , "." , wrapDirName }, "" )
83
83
wrapEnvFile := strings .Join ([]string {wrapDirPath , wrapEnvName }, "" )
84
84
@@ -90,7 +90,7 @@ func updateEnvs() {
90
90
func cleanupEnvs () {
91
91
wd , _ := os .Getwd ()
92
92
for _ , v := range getEnvList () {
93
- fullPathForWrapEnv := strings .Join ([]string {wd , "\\ " , "config" , "\\ " , v , ".config" }, "" )
93
+ fullPathForWrapEnv := strings .Join ([]string {wd , "/ " , "config" , "/ " , v , ".config" }, "" )
94
94
_ , sErr := os .Stat (fullPathForWrapEnv )
95
95
96
96
if ok := os .IsExist (sErr ); ok {
@@ -120,7 +120,7 @@ func sendSlackDM() {
120
120
121
121
for _ , v := range getEnvList () {
122
122
if isDone := isUpdateFinished (); isDone [v ] {
123
- fullPathForWrapEnv := strings .Join ([]string {wd , "\\ " , "config" , "\\ " , v , ".config" }, "" )
123
+ fullPathForWrapEnv := strings .Join ([]string {wd , "/ " , "config" , "/ " , v , ".config" }, "" )
124
124
wrapEnvName := strings .Join ([]string {v , ".config" }, "" )
125
125
126
126
envStringForWrapEnv = convertEnvMapToString (fullPathForWrapEnv , wrapEnvName )
@@ -137,7 +137,7 @@ func isUpdateFinished() map[string]bool {
137
137
138
138
for _ , v := range getEnvList () {
139
139
wd , _ := os .Getwd ()
140
- fullPath := strings .Join ([]string {wd , "\\ " , v }, "" )
140
+ fullPath := strings .Join ([]string {wd , "/ " , v }, "" )
141
141
142
142
_data , _rErr := os .ReadFile (fullPath )
143
143
nilChecker (_rErr )
0 commit comments