From cecaeccdc633806adfbab5f2d36cebbbfd5ce0c1 Mon Sep 17 00:00:00 2001 From: Doan Tran Cong Danh Date: Wed, 10 Jul 2019 15:20:53 +0700 Subject: xgensum: quote all XBPS_* variable expansion With 2 previous changes, we probadly don't need this, just in case someone have spaces in their directory's name. --- xgensum | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xgensum b/xgensum index 2047551..7e447eb 100755 --- a/xgensum +++ b/xgensum @@ -29,11 +29,11 @@ fi . "$template" # Try to source the build-style as well. This is required for R-cran packages. -if [ -f ${XBPS_DISTDIR}/common/environment/build-style/${build_style}.sh ]; then - . ${XBPS_DISTDIR}/common/environment/build-style/${build_style}.sh +if [ -f "${XBPS_DISTDIR}/common/environment/build-style/${build_style}.sh" ]; then + . "${XBPS_DISTDIR}/common/environment/build-style/${build_style}.sh" fi -XBPS_SRCDISTDIR=$($XBPS_DISTDIR/xbps-src show-var XBPS_SRCDISTDIR | tail -1) +XBPS_SRCDISTDIR=$("$XBPS_DISTDIR/xbps-src" show-var XBPS_SRCDISTDIR | tail -1) srcdir="$XBPS_SRCDISTDIR/$pkgname-$version" if [ "$FLAG_f" = -f ]; then @@ -43,10 +43,10 @@ if [ "$FLAG_f" = -f ]; then distfile="$srcdir/$curfile" rm -vf "$distfile" done - $XBPS_DISTDIR/xbps-src -I clean $pkgname + "$XBPS_DISTDIR/xbps-src" -I clean $pkgname fi -$XBPS_DISTDIR/xbps-src -I fetch $pkgname +"$XBPS_DISTDIR/xbps-src" -I fetch $pkgname sums="" for f in $distfiles; do -- cgit 1.4.1