From 176cff87c7b5f033f9458be2239238e2ba51f6d0 Mon Sep 17 00:00:00 2001 From: takeshix Date: Mon, 19 Apr 2021 13:40:47 +0200 Subject: [PATCH] Updated Nmap build script --- build/targets/build_nmap.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/build/targets/build_nmap.sh b/build/targets/build_nmap.sh index 564528f..6e6cfa7 100755 --- a/build/targets/build_nmap.sh +++ b/build/targets/build_nmap.sh @@ -1,12 +1,16 @@ #!/bin/bash -set -e -set -x -set -o pipefail +if [ -z "$GITHUB_WORKSPACE" ];then + echo "GITHUB_WORKSPACE environemnt variable not set!" + exit 1 +fi if [ "$#" -ne 1 ];then echo "Usage: ${0} [x86|x86_64|armhf|aarch64]" echo "Example: ${0} x86_64" exit 1 fi +set -e +set -o pipefail +set -x source $GITHUB_WORKSPACE/build/lib.sh init_lib $1