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 /any-to-ours | |
parent | a6f91db681e302763b687bb47abb5d258948007b (diff) |
rename FTP_BASE -> root_dir
Diffstat (limited to 'any-to-ours')
-rwxr-xr-x | any-to-ours | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/any-to-ours b/any-to-ours index a901d54..a54cf0a 100755 --- a/any-to-ours +++ b/any-to-ours @@ -26,7 +26,7 @@ for _repo in "${ARCHREPOS[@]}"; do # Find 'any' packages # This is hardcoded but it could release other arches... - PKGS=($(find "${FTP_BASE}/${_repo}/os/${BASEARCH}/" \ + PKGS=($(find "${root_dir}/${_repo}/os/${BASEARCH}/" \ -iname '*-any.pkg.tar.?z' \ -printf "%f ")) @@ -44,8 +44,8 @@ for _repo in "${ARCHREPOS[@]}"; do --include='*-any.pkg.tar.?z' \ --include='*-any.pkg.tar.?z.sig' \ --exclude='*' \ - "${FTP_BASE}/${_repo}/os/${BASEARCH}/" \ - "${FTP_BASE}/${_repo}/os/${_arch}/" 2>&1 | \ + "${root_dir}/${_repo}/os/${BASEARCH}/" \ + "${root_dir}/${_repo}/os/${_arch}/" 2>&1 | \ grep 'any\.pkg\.tar\..z$' | \ cut -d ' ' -f 1 )) @@ -58,7 +58,7 @@ for _repo in "${ARCHREPOS[@]}"; do msg2 "Adding to db..." - pushd "${FTP_BASE}/${_repo}/os/${_arch}/" >/dev/null + pushd "${root_dir}/${_repo}/os/${_arch}/" >/dev/null # Add the packages to the db repo-add "${_repo}${DBEXT}" "${SYNCED[@]}" |