summaryrefslogtreecommitdiff
path: root/tools/rpm/rpmbuild.sh
diff options
context:
space:
mode:
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"