sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 5abc801a1108bc72cae66781942335f7db38bf32
parent 38efdca5e160c227e670152298c44e2a0dff4ad8
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri,  1 Feb 2019 12:33:42 +0100

testpatches: fix cleanbuild()

this somehow worked anyway...

Diffstat:
Mtestpatches.sh | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/testpatches.sh b/testpatches.sh @@ -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"