Skip to content

Commit 890ba44

Browse files
committed
Fix warnings.
1 parent eaeabfb commit 890ba44

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

cppbuild/cppbuild

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/usr/bin/env bash
22

3-
SOURCE_DIR="`pwd`"
4-
BUILD_DIR="`pwd`/cppbuild/Release"
3+
SOURCE_DIR="$(pwd)"
4+
BUILD_DIR="$(pwd)/cppbuild/Release"
55

66
ncpus=1
7-
case "`uname`" in
7+
case "$(uname)" in
88
Darwin* )
9-
ncpus=`sysctl -n hw.ncpu`
9+
ncpus=$(sysctl -n hw.ncpu)
1010
;;
1111
Linux*)
1212
ncpus=$(lscpu -p | egrep -v '^#' | wc -l)
@@ -17,9 +17,9 @@ echo "Will make with \"-j $ncpus\"."
1717

1818
if [ -d "$BUILD_DIR" ] ; then
1919
echo "Build directory ($BUILD_DIR) exists, removing."
20-
rm -rf $BUILD_DIR
20+
rm -rf "$BUILD_DIR"
2121
fi
2222

23-
mkdir -p $BUILD_DIR
23+
mkdir -p "$BUILD_DIR"
2424

25-
(cd $BUILD_DIR && cmake -G "Unix Makefiles" $SOURCE_DIR && make clean && make -j "$ncpus" all && ctest -C Release --output-on-failure)
25+
(cd "$BUILD_DIR" && cmake -G "Unix Makefiles" "$SOURCE_DIR" && make clean && make -j "$ncpus" all && ctest -C Release --output-on-failure)

0 commit comments

Comments
 (0)