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

This commit is contained in:
KeyZox committed 2025-03-02 18:22:11 +01:00
1 parent d82f107bd6
commit 2673f6ef0b
9 files changed
+173 -60

No files matched your search

+19
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])
}
}