Add quote string
This commit is contained in:
3 files changed
+9
-1
No files matched your search
@@ -85,7 +85,7 @@ func exportEnvVars() {
|
|||||||
log.Printf("getting path to lf binary: %s", err)
|
log.Printf("getting path to lf binary: %s", err)
|
||||||
lfPath = "lf"
|
lfPath = "lf"
|
||||||
}
|
}
|
||||||
os.Setenv("lf", lfPath)
|
os.Setenv("lf", quoteString(lfPath))
|
||||||
}
|
}
|
||||||
|
|
||||||
// used by exportOpts below
|
// used by exportOpts below
|
||||||
|
|||||||
@@ -232,3 +232,7 @@ func exportFiles(f string, fs []string, pwd string) {
|
|||||||
os.Setenv("fx", envFiles)
|
os.Setenv("fx", envFiles)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func quoteString(s string) string {
|
||||||
|
return s
|
||||||
|
}
|
||||||
@@ -195,3 +195,7 @@ func exportFiles(f string, fs []string, pwd string) {
|
|||||||
os.Setenv("fx", envFiles)
|
os.Setenv("fx", envFiles)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func quoteString(s string) string {
|
||||||
|
return fmt.Sprintf(`"%s"`, s)
|
||||||
|
}
|
||||||
Reference in new issue
Block a user