added missing trailing slash

pull/11158/head
Steven Powell 2021-04-20 10:00:18 -07:00
parent 0e52a659fb
commit 3aaf0ff4ea
2 changed files with 2 additions and 2 deletions

View File

@ -371,7 +371,7 @@ func DisplayError(msg string, err error) {
func getLatestLogFileName() (string, error) {
dir := os.Getenv("TMPDIR")
if dir == "" {
dir = "/tmp"
dir = "/tmp/"
}
args := fmt.Sprintf("cd %s && echo %s$(ls -t *minikube_*_*_*log | head -1)", dir, dir)
c := exec.Command("/bin/bash", "-c", args)

View File

@ -118,7 +118,7 @@ func TestErr(t *testing.T) {
func TestGetLatestLogFile(t *testing.T) {
td := os.Getenv("TMPDIR")
if td == "" {
td = "/tmp"
td = "/tmp/"
}
want := fmt.Sprintf("%sminikube_test_test_test.log", td)
f, err := os.Create(want)