commit a24a25070bdf52e2aa4b4a4d6c54c8298cf0a6d7
parent 7e41929e867e953fd91a775c7a8c426ecb8dfaff
Author: Raymond Li <hi@raymond.li>
Date: Sun, 2 Aug 2020 10:57:45 -0400
Merge pull request #179 from simonppg/patch-1
Update build.sh
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/build.sh b/build.sh
@@ -1,8 +1,10 @@
#!/bin/bash
autoreconf -fiv
-rm -rf build/
-mkdir -p build && cd build/
+BUILD_DIR=build/
+rm -rf $BUILD_DIR
+mkdir -vp $BUILD_DIR
+cd $BUILD_DIR || { echo "cd $BUILD_DIR"; exit 127; }
../configure --prefix=/usr --sysconfdir=/etc