From 287e2d8349fe8ab94cb222368bcf0220a5c9c866 Mon Sep 17 00:00:00 2001 From: ar-qun Date: Wed, 2 Mar 2016 21:41:47 +0100 Subject: [PATCH 1/3] check without without any arguments shows all aur packages(pacman -Qmq) --- aurvote | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/aurvote b/aurvote index f283d61..5bac35c 100755 --- a/aurvote +++ b/aurvote @@ -219,7 +219,14 @@ fi COOKIE_FILE=${COOKIE_FILE:-"$AV_TMP/cookies"} pkgnames=("${pkgnames[@]%/*}") # compatibility with yaourt <= 1.2.1 -[[ ! $pkgnames ]] && usage && exit 1 + +if [[ ! $pkgnames ]]; then + if (( ACTION=="check" )); then + pkgnames=($(pacman -Qmq)) + else + usage && exit 1 + fi +fi aur_login From 1ccd5869b1d2de9d84531a73cadcffdea0b3e684 Mon Sep 17 00:00:00 2001 From: ar-qun Date: Wed, 2 Mar 2016 22:21:22 +0100 Subject: [PATCH 2/3] wrong brackets --- aurvote | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aurvote b/aurvote index 5bac35c..d5c0769 100755 --- a/aurvote +++ b/aurvote @@ -221,7 +221,7 @@ COOKIE_FILE=${COOKIE_FILE:-"$AV_TMP/cookies"} pkgnames=("${pkgnames[@]%/*}") # compatibility with yaourt <= 1.2.1 if [[ ! $pkgnames ]]; then - if (( ACTION=="check" )); then + if [[ ACTION=="check" ]]; then pkgnames=($(pacman -Qmq)) else usage && exit 1 From c9eabe68451e7451b4e0e3d949d38cf9e7c6ede4 Mon Sep 17 00:00:00 2001 From: ar-qun Date: Wed, 2 Mar 2016 23:15:54 +0100 Subject: [PATCH 3/3] fixed syntaxis --- aurvote | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aurvote b/aurvote index d5c0769..f64e4bf 100755 --- a/aurvote +++ b/aurvote @@ -221,7 +221,7 @@ COOKIE_FILE=${COOKIE_FILE:-"$AV_TMP/cookies"} pkgnames=("${pkgnames[@]%/*}") # compatibility with yaourt <= 1.2.1 if [[ ! $pkgnames ]]; then - if [[ ACTION=="check" ]]; then + if [[ $ACTION == "check" ]]; then pkgnames=($(pacman -Qmq)) else usage && exit 1