1
0

🏗️」 wip: FTP should be working but f*ck it let's drink beers

This commit is contained in:
2025-03-02 18:22:11 +01:00
parent d82f107bd6
commit 2673f6ef0b
9 changed files with 173 additions and 60 deletions

19
srcs/internal/cmd/cmd.go Normal file
View File

@ -0,0 +1,19 @@
package cmd
import (
"os"
"os/exec"
_log "git.keyzox.me/42_adjoly/inception/internal/log"
)
func ExecCmd(cmdStr []string) {
cmd := exec.Command(cmdStr[0], cmdStr...)
cmd.Env = os.Environ()
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
cmd.Stdin = os.Stdin
if err := cmd.Run(); err != nil {
_log.Log("error", "Could not execute : " + cmdStr[0])
}
}