diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-09-23 19:29:53 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-09-23 19:29:53 -0300 |
commit | 99493a15bde1b1c0d2d8f2ccc985da32570aacec (patch) | |
tree | 781b603cf679870510acc33ac98ac7d32e3f9aa6 /db-cleanup | |
parent | 30525051311cab57d27dcd4fd42284dc142696e1 (diff) |
rename generic variables
Diffstat (limited to 'db-cleanup')
-rwxr-xr-x | db-cleanup | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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[@]}" |