diff options
Diffstat (limited to 'src/abslibre-tools/libredbdiff')
-rwxr-xr-x | src/abslibre-tools/libredbdiff | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/abslibre-tools/libredbdiff b/src/abslibre-tools/libredbdiff index 924b9f4..6a56f06 100755 --- a/src/abslibre-tools/libredbdiff +++ b/src/abslibre-tools/libredbdiff @@ -35,8 +35,6 @@ dbpatharch="$basedbpath/pacman.archlinux" mirrorlist="$baseconfpath/mirrorlist.parabola" mirrorlistarch="$baseconfpath/mirrorlist.archlinux" -repos="libre pcr libre-multilib nonprism" - field_pkgname_parabola=30 field_pkgname_arch=30 @@ -157,7 +155,7 @@ initialize() { } repo_test() { - for repo in ${repos} ; do + for repo in "${repos[@]}" ; do if [[ $repo == "$1" ]] ; then found=1 return 0 @@ -313,7 +311,7 @@ main() { "$name" "$name" "$cmd" return 0 else - check_vars libredbdiff statedir || exit 1 + check_vars libredbdiff statedir repos || exit 1 filenotfound "${dbpath}/sync/libre.db" filenotfound "${dbpatharch}/sync/core.db" @@ -342,7 +340,7 @@ main() { if [[ ${repo_arg} ]] ; then print_cmp "${repo_arg}" else - for repo in ${repos} ; do + for repo in "${repos[@]}" ; do echo "[$repo]" print_cmp "$repo" done |