summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlackEagle <ike.devolder@gmail.com>2014-02-16 09:56:00 +0100
committerPierre Schmitz <pierre@archlinux.de>2014-05-10 08:04:51 +0200
commit7aac293d76e4bdf6ceee1cfe5d888060c24f1822 (patch)
tree8d64db20dda41f8aa9c2863c6d5d7601eeb67fd6
parent6db31cc16a8044272170204975378ece8eb94e2a (diff)
get_full_version :: remove duplicated epoch check
Signed-off-by: BlackEagle <ike.devolder@gmail.com> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
-rw-r--r--lib/common.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/common.sh b/lib/common.sh
index 1009e90..c9ff1b8 100644
--- a/lib/common.sh
+++ b/lib/common.sh
@@ -114,7 +114,7 @@ get_full_version() {
pkgbase=${pkgbase:-${pkgname[0]}}
epoch=${epoch:-0}
if [[ -z $1 ]]; then
- if [[ $epoch ]] && (( ! $epoch )); then
+ if (( ! epoch )); then
echo $pkgver-$pkgrel
else
echo $epoch:$pkgver-$pkgrel