diff options
| author | van Hauser <vh@thc.org> | 2022-01-30 20:59:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-30 20:59:24 +0100 |
| commit | 2d9325aed9bde0630162a5efaac33a2a8f5bb252 (patch) | |
| tree | bbb0cf0f8620b71d315dcc449018affd3ea5b33a /qemu_mode | |
| parent | 143c9d175e9357ba548413ee7dcee6a8de23f733 (diff) | |
| parent | 53eb5ba2fbfa75e1c008239bf5d54238bfadb148 (diff) | |
| download | afl++-2d9325aed9bde0630162a5efaac33a2a8f5bb252.tar.gz | |
Merge pull request #1319 from AFLplusplus/dev
push to stable
Diffstat (limited to 'qemu_mode')
| -rwxr-xr-x | qemu_mode/build_qemu_support.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/qemu_mode/build_qemu_support.sh b/qemu_mode/build_qemu_support.sh index 86ebb4d4..8822770c 100755 --- a/qemu_mode/build_qemu_support.sh +++ b/qemu_mode/build_qemu_support.sh @@ -77,9 +77,9 @@ if [ $? -eq 0 ]; then git submodule update ./qemuafl 2>/dev/null # ignore errors else echo "[*] cloning qemuafl" - test -d qemuafl || { + test -d qemuafl/.git || { CNT=1 - while [ '!' -d qemuafl -a "$CNT" -lt 4 ]; do + while [ '!' -d qemuafl/.git -a "$CNT" -lt 4 ]; do echo "Trying to clone qemuafl (attempt $CNT/3)" git clone --depth 1 https://github.com/AFLplusplus/qemuafl CNT=`expr "$CNT" + 1` @@ -87,7 +87,7 @@ else } fi -test -d qemuafl || { echo "[-] Not checked out, please install git or check your internet connection." ; exit 1 ; } +test -d qemuafl/.git || { echo "[-] Not checked out, please install git or check your internet connection." ; exit 1 ; } echo "[+] Got qemuafl." cd "qemuafl" || exit 1 @@ -96,6 +96,7 @@ if [ -n "$NO_CHECKOUT" ]; then else echo "[*] Checking out $QEMUAFL_VERSION" sh -c 'git stash' 1>/dev/null 2>/dev/null + git pull git checkout "$QEMUAFL_VERSION" || echo Warning: could not check out to commit $QEMUAFL_VERSION fi |
