mirror of https://github.com/Chizi123/Arch-autobuild-repo.git

Chizi123
2020-10-23 60adbdc4ec1b9b62ea92c818d30dc4114a70048d
allow spacing in pkgver()
1 files modified
2 ■■■ changed files
main.sh 2 ●●● patch | view | raw | blame | history
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 [[ -n "$(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[[:space:]]() {' PKGBUILD)" && -z "$2" ]]; then
        return 2
    fi