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-repo-add | |
parent | a6f91db681e302763b687bb47abb5d258948007b (diff) |
rename FTP_BASE -> root_dir
Diffstat (limited to 'db-repo-add')
-rwxr-xr-x | db-repo-add | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/db-repo-add b/db-repo-add index 4611bdf..024fce8 100755 --- a/db-repo-add +++ b/db-repo-add @@ -12,7 +12,7 @@ repo="$1" arch="$2" pkgfiles=("${@:3}") -ftppath="$FTP_BASE/$repo/os" +ftppath="${root_dir}/$repo/os" if ! check_repo_permission "$repo"; then die "You don't have permission to add packages to %s" "${repo}" @@ -30,8 +30,8 @@ done for tarch in "${tarches[@]}"; do for pkgfile in "${pkgfiles[@]}"; do - if [[ ! -f "${FTP_BASE}/${repo}/os/${arch}/${pkgfile##*/}" ]]; then - die "Package file %s not found in %s" "${pkgfile##*/}" "${FTP_BASE}/${repo}/os/${arch}/" + if [[ ! -f "${root_dir}/${repo}/os/${arch}/${pkgfile##*/}" ]]; then + die "Package file %s not found in %s" "${pkgfile##*/}" "${root_dir}/${repo}/os/${arch}/" else msg "Adding %s to [%s]..." "$pkgfile" "$repo" fi |