From def1b7ffe06688ae78c6eb834e587e03c311329c Mon Sep 17 00:00:00 2001 From: Juan Date: Wed, 29 Aug 2018 17:00:09 +0200 Subject: [PATCH] Working --- debian/changelog | 2 +- vn-branch | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/debian/changelog b/debian/changelog index 8c907ac..aec0342 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -vn-repo (2.0.50) stable; urgency=low +vn-repo (2.0.51) stable; urgency=low * Initial Release. diff --git a/vn-branch b/vn-branch index bc4f943..bbd5e6b 100755 --- a/vn-branch +++ b/vn-branch @@ -32,16 +32,17 @@ echo " * Directory: $srcDir" >> "$logFile" echo " * Host: $(hostname)" >> "$logFile" mkdir -p "$srcDir" +cd "$srcDir" if [ ! -d "$srcDir/.git" ]; then - (cd "$srcDir" && git init) + git init >> "$logFile" fi -(cd "$srcDir" && git config remote.origin.url "$gitUrl/$projectName") -(cd "$srcDir" && git pull origin "$gitBranch") +git config remote.origin.url "$gitUrl/$projectName" >> "$logFile" +git pull origin "$gitBranch" >> "$logFile" if [ -f "$srcDir/deploy" ]; then - (cd "$srcDir" && "$srcDir/deploy" >> "$logFile" 2>&1) + "$srcDir/deploy" >> "$logFile" 2>&1 fi echo -e "\n# Deploying ended\n" >> "$logFile"