From bd13a0ebe97917e0e281dbfbbf7b60154491c1f5 Mon Sep 17 00:00:00 2001 From: "Tobias P.L Wennberg" Date: Sun, 12 Jan 2025 19:21:15 +0100 Subject: [PATCH] I want touch this way --- command/touch/touch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/touch/touch.go b/command/touch/touch.go index c040d7e..00e379f 100644 --- a/command/touch/touch.go +++ b/command/touch/touch.go @@ -9,7 +9,7 @@ import ( ) func Touch(in input_parser.Input, env *environment.Env) { - file_path := filepath.Join(env.Path, in.Args[0]) + file_path := filepath.Join(env.Path, in.Args_raw) _, err := os.Stat(file_path) if !os.IsNotExist(err) { fmt.Print(fmt.Sprintf("File alredy exist!"))