From 289ad31c61b2d98d44cfe749c71621032e50b6b6 Mon Sep 17 00:00:00 2001 From: konrad Date: Wed, 26 Apr 2017 20:58:42 +0200 Subject: [PATCH] Init --- src/Simple-Git-Deploy/cmd.sh | 3 +++ src/Simple-Git-Deploy/main.go | 15 +++++++++++++++ 2 files changed, 18 insertions(+) create mode 100755 src/Simple-Git-Deploy/cmd.sh create mode 100644 src/Simple-Git-Deploy/main.go diff --git a/src/Simple-Git-Deploy/cmd.sh b/src/Simple-Git-Deploy/cmd.sh new file mode 100755 index 0000000..59ebfc2 --- /dev/null +++ b/src/Simple-Git-Deploy/cmd.sh @@ -0,0 +1,3 @@ +#!/bin/bash +#ssh-agent bash -c 'ssh-add /mnt/drive/wobsites/life/keys/deploy; git clone ssh://git@git.mowie.cc:9022/Websites/Life-Homepage.git /mnt/drive/wobsites/life/deploy-test' +git --version \ No newline at end of file diff --git a/src/Simple-Git-Deploy/main.go b/src/Simple-Git-Deploy/main.go new file mode 100644 index 0000000..950716b --- /dev/null +++ b/src/Simple-Git-Deploy/main.go @@ -0,0 +1,15 @@ +package main + +import ( + "fmt" + "os/exec" + "log" +) + +func main() { + cmd, err := exec.Command( "/bin/bash", "cmd.sh").Output() + if err != nil { + log.Fatal(err) + } + fmt.Printf("%s\n", cmd) +}