summaryrefslogtreecommitdiff
path: root/db-cleanup
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-09-23 19:29:53 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-09-23 19:29:53 -0300
commit99493a15bde1b1c0d2d8f2ccc985da32570aacec (patch)
tree781b603cf679870510acc33ac98ac7d32e3f9aa6 /db-cleanup
parent30525051311cab57d27dcd4fd42284dc142696e1 (diff)
rename generic variables
Diffstat (limited to 'db-cleanup')
-rwxr-xr-xdb-cleanup6
1 files changed, 3 insertions, 3 deletions
diff --git a/db-cleanup b/db-cleanup
index ee0b800..10e3840 100755
--- a/db-cleanup
+++ b/db-cleanup
@@ -26,7 +26,7 @@ trap 'trap_exit "$(gettext "Aborted by user! Exiting...")"' INT
trap 'trap_exit "$(gettext "An unknown error has occurred. Exiting...")"' ERR
EXTRAFLAGS=()
-"${CLEANUP_DRYRUN}" && EXTRAFLAGS+=(--dry-run)
+"${cleanup_dryrun}" && EXTRAFLAGS+=(--dry-run)
filter=$(mktemp -t "${0##*/}.XXXXXXXXXX")
trap "rm -f -- $(printf %q "$filter")" EXIT
@@ -35,7 +35,7 @@ for _repo in "${PKGREPOS[@]}"; do
for _arch in "${ARCHES[@]}"; do
msg "Getting %s-%s database" "${_repo}" "${_arch}"
- dbfile="${root_dir}/${_repo}/os/${_arch}/${_repo}${DBEXT}"
+ dbfile="${root_dir}/${_repo}/os/${_arch}/${_repo}${database_extension_suffixfile}"
if [ ! -r "${dbfile}" ]; then
warning "Not found"
@@ -65,5 +65,5 @@ done
msg "Removing dead symlinks:"
actions=(-print)
-"${CLEANUP_DRYRUN}" || actions+=(-delete)
+"${cleanup_dryrun}" || actions+=(-delete)
find -L "${root_dir}/" -type l "${actions[@]}"