diff options
-rwxr-xr-x | repofish | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -69,7 +69,7 @@ clean_packages() { declare -a pkg=("${!1}") echo -e '\033[1;34m:: \033[1;37mCleaning following packages: '"${pkg[@]}"'\033[m' for i in "${pkg[@]}"; do - find ${SRC_PATH} -type f -iname "*$i*.pkg.tar.xz" -exec rm {} \; + find ${SRC_PATH}/$i -type f -iname "*$i*.pkg.tar.xz" -exec rm {} \; done else echo -e '\033[1;34m:: \033[1;37mCleaning all packages\033[m' @@ -159,7 +159,7 @@ update_repo() { declare -a pkg=("${!1}") echo -e '\033[1;34m:: \033[1;37mUpdating following packages in local repository: '"${pkg[@]}"'\033[m' for i in "${pkg[@]}"; do - find ${SRC_PATH} -type f -iname "*$i*pkg.tar.xz" -exec cp {} ${REPO_PATH}/${ARCH}/ \; + find ${SRC_PATH}/$i -type f -iname "*$i*pkg.tar.xz" -exec cp {} ${REPO_PATH}/${ARCH}/ \; repo-add ${REPO_PATH}/${ARCH}/${REPO_NAME}.db.tar.gz ${REPO_PATH}/${ARCH}/*$i*.pkg.tar.xz done else |