From 99493a15bde1b1c0d2d8f2ccc985da32570aacec Mon Sep 17 00:00:00 2001 From: "coadde [Márcio Alexandre Silva Delgado]" Date: Wed, 23 Sep 2015 19:29:53 -0300 Subject: rename generic variables --- db-cleanup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'db-cleanup') 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[@]}" -- cgit v1.2.3-54-g00ecf