diff options
author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2021-03-04 10:57:00 +0100 |
---|---|---|
committer | Andrea Fioraldi <andreafioraldi@gmail.com> | 2021-03-04 10:57:00 +0100 |
commit | 08ef8d6b787f1a04b5ec3644d7ecae41d2668193 (patch) | |
tree | 326223d7321c3909180d0f02a192946d70d985e9 /qemu_mode/build_qemu_support.sh | |
parent | 3977d50b5538e8097eb5d9329c6df5eaa147374b (diff) | |
download | afl++-08ef8d6b787f1a04b5ec3644d7ecae41d2668193.tar.gz |
NO_CHECKOUT=1 ./build_qemu_support.sh
Diffstat (limited to 'qemu_mode/build_qemu_support.sh')
-rwxr-xr-x | qemu_mode/build_qemu_support.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/qemu_mode/build_qemu_support.sh b/qemu_mode/build_qemu_support.sh index 97a05800..4d3d9bf6 100755 --- a/qemu_mode/build_qemu_support.sh +++ b/qemu_mode/build_qemu_support.sh @@ -131,9 +131,13 @@ test -d qemuafl || { echo "[-] Not checked out, please install git or check your echo "[+] Got qemuafl." cd "qemuafl" || exit 1 -echo "[*] Checking out $QEMUAFL_VERSION" -# sh -c 'git stash && git stash drop' 1>/dev/null 2>/dev/null -git checkout "$QEMUAFL_VERSION" || echo Warning: could not check out to commit $QEMUAFL_VERSION +if [ -n "$NO_CHECKOUT" ]; then + echo "[*] Skipping checkout to $QEMUAFL_VERSION" +else + echo "[*] Checking out $QEMUAFL_VERSION" + sh -c 'git stash' 1>/dev/null 2>/dev/null + git checkout "$QEMUAFL_VERSION" || echo Warning: could not check out to commit $QEMUAFL_VERSION +fi echo "[*] Making sure imported headers matches" cp "../../include/config.h" "./qemuafl/imported/" || exit 1 |