Skip to content

Commit 350501e

Browse files
committed
Delete any old clone of SU2 repository
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
1 parent 6525bb9 commit 350501e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build/compileSU2.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ if [ ! -z "$branch" ]; then
4444
mkdir "src"
4545
fi
4646
cd "src"
47+
if [ -d $name ]; then
48+
rm -rf $name
49+
fi
4750
git clone --recursive --depth=1 --shallow-submodules https://github.com/su2code/SU2 $name
4851
cd $name
4952
git config --add remote.origin.fetch '+refs/pull/*/merge:refs/remotes/origin/refs/pull/*/merge'

0 commit comments

Comments
 (0)