Skip to content

Commit

Permalink
fix f_update_local_repo function
Browse files Browse the repository at this point in the history
  • Loading branch information
David Mace authored and David Mace committed Feb 25, 2020
1 parent 582c20e commit 05d8543
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spotify-easyrpm
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ cat <<EOF
EOF
sleep 2
cat <<EOF
VERSION: 2.1.0
VERSION: 2.1.1
SUPPORT: https://github.com/megamaced/spotify-easyrpm/issues
The latest openSUSE Leap, Tumbleweed or SLE are supported only
Expand Down Expand Up @@ -515,7 +515,7 @@ systemctl --user enable "${V_PRG_NAME}.timer"
f_update_local_repo() {
if [[ "${V_RUN_MODE}" != "clean-repo" ]]; then
echo "Moving RPMs from your rpmbuild ${V_RPMS_DIR} to your local repo ${V_LOCAL_REPO}"
find "${V_RPMS_DIR}"/"${V_RPM_ARCH}"/ -name "${V_PKGNAME}"-*"${V_RPM_ARCH}".rpm -type f -exec mv -t "${V_LOCAL_REPO}" {} \+
find "${V_RPMS_DIR}"/"${V_RPM_ARCH}"/ -name "${V_PKGNAME}-*${V_RPM_ARCH}.rpm" -type f -exec mv -t "${V_LOCAL_REPO}" {} \+
fi
if ! createrepo -q "${V_LOCAL_REPO}"; then
f_error "Failed to create / update local repo. Aborting"
Expand Down

0 comments on commit 05d8543

Please sign in to comment.