Skip to content

Commit 1f3e925

Browse files
committed
[fix] : Remove trailing comma
1 parent d48df4d commit 1f3e925

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

system/aur.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#
77
# (c) 2019-2021 Fascode Network.
88
#
9+
#shellcheck disable=SC2001
10+
911
set -e -u
1012

1113
aur_username="aurbuild"
@@ -42,8 +44,8 @@ while getopts "a:cd:e:p:u:xh" arg; do
4244
a) aur_helper="${OPTARG}" ;;
4345
c) pacman_debug=true ;;
4446
e) aur_helper_command="${OPTARG}" ;;
45-
p) readarray -t pkglist < <(tr "," "\n" <<< "${OPTARG}") ;;
46-
d) readarray -t aur_helper_depends < <(tr "," "\n" <<< "${OPTARG}") ;;
47+
p) readarray -t pkglist < <(sed "s|,$||g" <<< "${OPTARG}" | tr "," "\n") ;;
48+
d) readarray -t aur_helper_depends < <(sed "s|,$||g" <<< "${OPTARG}" | tr "," "\n") ;;
4749
u) aur_username="${OPTARG}" ;;
4850
x) set -xv ;;
4951
h)

0 commit comments

Comments
 (0)