about summary refs log tree commit diff
path: root/nyx_mode
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2022-01-30 20:59:24 +0100
committerGitHub <noreply@github.com>2022-01-30 20:59:24 +0100
commit2d9325aed9bde0630162a5efaac33a2a8f5bb252 (patch)
treebbb0cf0f8620b71d315dcc449018affd3ea5b33a /nyx_mode
parent143c9d175e9357ba548413ee7dcee6a8de23f733 (diff)
parent53eb5ba2fbfa75e1c008239bf5d54238bfadb148 (diff)
downloadafl++-2d9325aed9bde0630162a5efaac33a2a8f5bb252.tar.gz
Merge pull request #1319 from AFLplusplus/dev
push to stable
Diffstat (limited to 'nyx_mode')
-rwxr-xr-xnyx_mode/build_nyx_support.sh16
1 files changed, 9 insertions, 7 deletions
diff --git a/nyx_mode/build_nyx_support.sh b/nyx_mode/build_nyx_support.sh
index b6c1d54e..3cb13cf1 100755
--- a/nyx_mode/build_nyx_support.sh
+++ b/nyx_mode/build_nyx_support.sh
@@ -1,6 +1,4 @@
 #!/bin/bash
-set -e
-
 echo "================================================="
 echo "           Nyx build script"
 echo "================================================="
@@ -19,6 +17,7 @@ echo "[*] Making sure all Nyx is checked out"
 
 git status 1>/dev/null 2>/dev/null
 if [ $? -eq 0 ]; then
+
   git submodule init || exit 1
   echo "[*] initializing QEMU-Nyx submodule"
   git submodule update ./QEMU-Nyx 2>/dev/null # ignore errors
@@ -28,13 +27,16 @@ if [ $? -eq 0 ]; then
   git submodule update ./libnyx 2>/dev/null # ignore errors
 
 else
-  echo "[ ] not a git repo..."
-  exit 1
+
+  test -d QEMU-Nyx/.git || git clone https://github.com/nyx-fuzz/qemu-nyx QEMU-Nyx
+  test -d packer/.git || git clone https://github.com/nyx-fuzz/packer
+  test -d libnyx/.git || git clone https://github.com/nyx-fuzz/libnyx
+
 fi
 
-test -d QEMU-Nyx || { echo "[-] Not checked out, please install git or check your internet connection." ; exit 1 ; }
-test -d packer || { echo "[-] Not checked out, please install git or check your internet connection." ; exit 1 ; }
-test -d libnyx || { echo "[-] Not checked out, please install git or check your internet connection." ; exit 1 ; }
+test -d QEMU-Nyx/.git || { echo "[-] Not checked out, please install git or check your internet connection." ; exit 1 ; }
+test -d packer/.git || { echo "[-] Not checked out, please install git or check your internet connection." ; exit 1 ; }
+test -d libnyx/.git || { echo "[-] Not checked out, please install git or check your internet connection." ; exit 1 ; }
 
 echo "[*] checking packer init.cpio.gz ..."
 if [ ! -f "packer/linux_initramfs/init.cpio.gz" ]; then