From 49a9f7da6ad9ae53d0108a1b5525096ac923b80e Mon Sep 17 00:00:00 2001 From: Max Lin Date: Sat, 4 Apr 2015 21:09:03 +0800 Subject: [PATCH] Unset nullglob after counting RPMs If nullglub sets, seems it will affect the following osc api call for finding matched projects as like as the error below, osc api: takes exactly 1 argument (0 given) thus unset nullglob after counting RPMs. --- create_test_dvds.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/create_test_dvds.sh b/create_test_dvds.sh index 10503e54..8a6f2452 100755 --- a/create_test_dvds.sh +++ b/create_test_dvds.sh @@ -84,6 +84,7 @@ function sync_prj() { if [ "$dir" -nt "$dir.solv" ]; then shopt -s nullglob rpms=($dir/*.rpm) + shopt -u nullglob if [ "${#rpms[@]}" -gt 0 ]; then local start=$SECONDS rpms2solv "${rpms[@]}" > $dir.solv