diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-09-23 18:30:39 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-09-23 18:30:39 -0300 |
commit | fa4ff798507ded0b26dcdc310d1f97e2e61198c4 (patch) | |
tree | b1a7a66b187fb3825f24fba79603a19bd9036127 /db-cleanup | |
parent | a6f91db681e302763b687bb47abb5d258948007b (diff) |
rename FTP_BASE -> root_dir
Diffstat (limited to 'db-cleanup')
-rwxr-xr-x | db-cleanup | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -35,7 +35,7 @@ for _repo in "${PKGREPOS[@]}"; do for _arch in "${ARCHES[@]}"; do msg "Getting %s-%s database" "${_repo}" "${_arch}" - dbfile="${FTP_BASE}/${_repo}/os/${_arch}/${_repo}${DBEXT}" + dbfile="${root_dir}/${_repo}/os/${_arch}/${_repo}${DBEXT}" if [ ! -r "${dbfile}" ]; then warning "Not found" @@ -59,11 +59,11 @@ for POOL in "${PKGPOOLS[@]}" "${SRCPOOLS[@]}"; do rsync "${EXTRAFLAGS[@]}" -va --delete-excluded \ --include-from="$filter" \ --exclude="*" \ - "${FTP_BASE}/${POOL}/" \ - "${FTP_BASE}/${POOL}/" + "${root_dir}/${POOL}/" \ + "${root_dir}/${POOL}/" done msg "Removing dead symlinks:" actions=(-print) "${CLEANUP_DRYRUN}" || actions+=(-delete) -find -L "${FTP_BASE}/" -type l "${actions[@]}" +find -L "${root_dir}/" -type l "${actions[@]}" |