Commit 06ec0516 authored by Bernhard Landauer's avatar Bernhard Landauer
Browse files

check if repo is git repo

parent cf6041fe
......@@ -115,9 +115,11 @@ build_list_git() {
LOG_FILE="${LOG_DIR}/$p-$(date +'%Y%m%d%H%M')"
msg4 "logfile: $LOG_FILE"
rm -rf src PKGBUILD &>/dev/null
git checkout PKGBUILD &>/dev/null && git pull &>/dev/null
user_own PKGBUILD .git
if [[ -d .git ]]; then
rm -rf src PKGBUILD &>/dev/null
git checkout PKGBUILD &>/dev/null && git pull &>/dev/null
user_own PKGBUILD .git
fi
cd ..
echo ${LOG_FILE} > $mon
build_pkg $p &>${LOG_FILE}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment