diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-05-24 12:35:53 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-05-25 00:45:25 -0600 |
commit | 0be51cb3e78592984ea8152cac176448d1765fb0 (patch) | |
tree | 23ea9e5e3e642d7eb0a485b82b76ed6c603c7885 /db-remove | |
parent | 7efc4b2b48f9ed1669a17b3cd307db0f17e193e9 (diff) |
db-remove: pull the path ${SVNREPO}/$repo/$pkgbase into a variable.
This way, if it changes, it only needs to be changed in one place.
Diffstat (limited to 'db-remove')
-rwxr-xr-x | db-remove | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -30,8 +30,9 @@ remove_pkgs=() for pkgbase in "${pkgbases[@]}"; do msg "Removing %s from [%s]..." "$pkgbase" "$repo" - if [ -d "${SVNREPO}/$repo/$pkgbase" ]; then - remove_pkgs+=($(. "${SVNREPO}/$repo/$pkgbase/PKGBUILD"; echo "${pkgname[@]}")) + path="${SVNREPO}/$repo/$pkgbase" + if [ -d "$path" ]; then + remove_pkgs+=($(. "$path/PKGBUILD"; echo "${pkgname[@]}")) else warning "%s not found in ABS(libre)" "$pkgbase" warning "Removing only %s from the repo" "$pkgbase" |