Bugs fixed

This commit is contained in:
Juan 2018-08-29 16:36:31 +02:00
parent bc2ae7d0de
commit 048b0c9a5b
2 changed files with 5 additions and 6 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
vn-repo (2.0.40) stable; urgency=low
vn-repo (2.0.41) stable; urgency=low
* Initial Release.

View File

@ -32,17 +32,16 @@ echo " * Directory: $srcDir" >> "$logFile"
echo " * Host: $(hostname)" >> "$logFile"
mkdir -p "$srcDir"
cd "$srcDir"
if [ ! -d "$srcDir/.git" ]; then
git init
(cd "$srcDir" && git init)
fi
git config remote.origin.url "$gitUrl/$projectName"
git pull origin "$gitBranch"
(cd "$srcDir" && git config remote.origin.url "$gitUrl/$projectName")
(cd "$srcDir" && git pull origin "$gitBranch")
if [ -f "$srcDir/deploy" ]; then
"$srcDir/deploy" >> "$logFile" 2>&1
(cd "$srcDir" && "$srcDir/deploy" >> "$logFile" 2>&1)
fi
echo -e "\n# Deploying ended\n" >> "$logFile"