summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-07-20 22:35:48 +0200
committerSébastien Helleu <flashcode@flashtux.org>2014-07-20 22:35:48 +0200
commitc0d1a0d4b50b285ec6cf914ce938ac63d3004dbc (patch)
tree191d0f11e5ba6a4cd32af78405120a0391f43545
parente5d62431552cd28907bc176c5d5a3bcd93a4e74e (diff)
downloadweechat-c0d1a0d4b50b285ec6cf914ce938ac63d3004dbc.zip
core: use run function to create build directory
-rwxr-xr-xscripts/build.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build.sh b/scripts/build.sh
index 19aaec439..2f00c3e2a 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -47,8 +47,8 @@ if [ -z "$BUILDTOOL" ]; then
fi
# create build directory
-mkdir $BUILDDIR || exit 1
-cd $BUILDDIR || exit 1
+run "mkdir $BUILDDIR"
+run "cd $BUILDDIR"
if [ "$BUILDTOOL" = "cmake" ]; then
# build with CMake