diff --git a/srcpkgs/xcursor-retrosmart/template b/srcpkgs/xcursor-retrosmart/template index 56d2d6a0b46..f8e2ee67ab8 100644 --- a/srcpkgs/xcursor-retrosmart/template +++ b/srcpkgs/xcursor-retrosmart/template @@ -11,10 +11,10 @@ maintainer="luca " distfiles="https://github.com/mdomlop/retrosmart-x11-cursors/archive/refs/tags/3.1a.tar.gz" pre_fetch() { - if ! cd "$XBPS_SRCDISTDIR"; then + cd "$XBPS_SRCDISTDIR" || { msg_error "$pkgver: cannot change dir to $XBPS_BUILDDIR!\n" exit 1 - fi + } url="${distfiles}" distfile="$(basename "$url")"