mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
fix
This commit is contained in:
parent
fe8fffe8c9
commit
91b88ef960
@ -2,7 +2,7 @@
|
||||
_pkgname=repo
|
||||
_reponame=arch-pkg
|
||||
pkgname="de-p1st-$_pkgname"
|
||||
pkgver=0.0.11
|
||||
pkgver=0.0.12
|
||||
pkgrel=1
|
||||
pkgdesc="Bash script to manage remote Arch Linux repository"
|
||||
arch=('any')
|
||||
|
@ -91,8 +91,8 @@ function get_pkgname(){
|
||||
|
||||
# remove "pkgname = " as well as tailing whitespace characters
|
||||
local tmp
|
||||
tmp=$(echo "$PKGINFO" | grep '^pkname') || return $?
|
||||
PKGVER=$(echo "$tmp" | sed 's|^pkgname\s*=\s*||; s|\s*$||') || return $?
|
||||
tmp=$(echo "${PKGINFO}" | grep '^pkname') || { echo "grep failed"; return 1; }
|
||||
PKGVER=$(echo "${tmp}" | sed 's|^pkgname\s*=\s*||; s|\s*$||') || { echo "sed failed"; return 1; }
|
||||
}
|
||||
#
|
||||
# get pkgver from $PKGINFO
|
||||
@ -102,8 +102,8 @@ function get_pkgver(){
|
||||
|
||||
# remove "pkgver = " as well as tailing whitespace characters
|
||||
local tmp
|
||||
tmp=$(echo "$PKGINFO" | grep '^pkgver') || return $?
|
||||
PKGVER=$(echo "$tmp" | sed 's|^pkgver\s*=\s*||; s|\s*$||') || return $?
|
||||
tmp=$(echo "${PKGINFO}" | grep '^pkgver') || { echo "grep failed"; return 1; }
|
||||
PKGVER=$(echo "${tmp}" | sed 's|^pkgver\s*=\s*||; s|\s*$||') || { echo "sed failed"; return 1; }
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user