[wiki] [sites] testpatches: fix cleanbuild() || Hiltjo Posthuma
commit 5abc801a1108bc72cae66781942335f7db38bf32
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Fri Feb 1 12:33:42 2019 +0100
testpatches: fix cleanbuild()
this somehow worked anyway...
diff --git a/testpatches.sh b/testpatches.sh
index 651f6f09..826fca61 100755
--- a/testpatches.sh
+++ b/testpatches.sh
_AT_@ -158,9 +158,11 @@ preparebuilds() {
# cleanbuild(project, version, build)
cleanbuild() {
- if test -d "$builddir/$project/$b"; then
- rm -rf "$builddir/$project/$b"
- fi
+ project="$1"
+ v="$2"
+ b="$3"
+
+ test -d "$builddir/$project/$b" && rm -rf "$builddir/$project/$b"
mkdir -p "$builddir/$project"
cp -r "$revdir/$project/$v" "$builddir/$project/$b"
Received on Fri Feb 01 2019 - 12:34:01 CET
This archive was generated by hypermail 2.3.0
: Fri Feb 01 2019 - 12:36:26 CET