From 0e96dc1f95be48a70de0beaef20b56cbb510365c Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Wed, 11 Nov 2020 00:26:07 +0100 Subject: tools: lint shell scripts PR-URL: https://github.com/nodejs/node/pull/36099 Reviewed-By: Rich Trott --- tools/rpm/rpmbuild.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools/rpm/rpmbuild.sh') diff --git a/tools/rpm/rpmbuild.sh b/tools/rpm/rpmbuild.sh index 6f2d0d123b..6c990c8e94 100755 --- a/tools/rpm/rpmbuild.sh +++ b/tools/rpm/rpmbuild.sh @@ -16,7 +16,7 @@ set -e -TOOLSDIR=`dirname $0` +TOOLSDIR=`dirname "$0"` TOPLEVELDIR="$TOOLSDIR/../.." RPMBUILD_PATH="${RPMBUILD_PATH:-$HOME/rpmbuild}" @@ -38,7 +38,7 @@ fi set -x sed -re "s/%define _version .+/%define _version ${VERSION}/" \ - "$TOOLSDIR/node.spec" > $RPMBUILD_PATH/SPECS/node.spec + "$TOOLSDIR/node.spec" > "$RPMBUILD_PATH/SPECS/node.spec" tar --exclude-vcs --transform="s|^|node-${VERSION}/|" \ - -czf $RPMBUILD_PATH/SOURCES/node-v${VERSION}.tar.gz . -rpmbuild $* -ba $RPMBUILD_PATH/SPECS/node.spec + -czf "$RPMBUILD_PATH/SOURCES/node-v${VERSION}.tar.gz" . +rpmbuild "$*" -ba "$RPMBUILD_PATH/SPECS/node.spec" -- cgit v1.2.1