From d219b833fbc6ef692cb92830e940a7be7fccc5ed Mon Sep 17 00:00:00 2001
From: Chizi123 <build@jsrv.com>
Date: Thu, 22 Oct 2020 02:12:58 +0000
Subject: [PATCH] fixed repo update and vc checking
---
main.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/main.sh b/main.sh
index 5a491fa..97179a8 100755
--- a/main.sh
+++ b/main.sh
@@ -47,7 +47,7 @@
# Usage: build_pkg [package name] [-f force]
function build_pkg {
#check if PKGBUILD has updated, don't rebuild if hasn't changed
- if [[ ! -z $(git pull | grep "Already up to date.") && -z $(grep 'pkgver() {' PKGBUILD) && -z $2 ]]; then
+ if [[ -n "$(git pull | grep 'Already up to date.')" && -z "$(grep 'pkgver() {' PKGBUILD)" && -z "$2" ]]; then
return 2
fi
--
Gitblit v1.10.0