summaryrefslogtreecommitdiff
path: root/tools/rpm/rpmbuild.sh
diff options
context:
space:
mode:
authorAntoine du Hamel <duhamelantoine1995@gmail.com>2020-11-11 00:26:07 +0100
committerAntoine du Hamel <duhamelantoine1995@gmail.com>2020-12-16 23:45:26 +0100
commit0e96dc1f95be48a70de0beaef20b56cbb510365c (patch)
tree2f5e2300f7b246014a06a74e234abbc175da9192 /tools/rpm/rpmbuild.sh
parent4a6200e28947af3a7e1f65a332f3d391bc967a67 (diff)
downloadnode-new-0e96dc1f95be48a70de0beaef20b56cbb510365c.tar.gz
tools: lint shell scripts
PR-URL: https://github.com/nodejs/node/pull/36099 Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'tools/rpm/rpmbuild.sh')
-rwxr-xr-xtools/rpm/rpmbuild.sh8
1 files changed, 4 insertions, 4 deletions
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"