Skip to content

Commit 176cff8

Browse files
committed
Updated Nmap build script
1 parent 782855b commit 176cff8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

build/targets/build_nmap.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
#!/bin/bash
2-
set -e
3-
set -x
4-
set -o pipefail
2+
if [ -z "$GITHUB_WORKSPACE" ];then
3+
echo "GITHUB_WORKSPACE environemnt variable not set!"
4+
exit 1
5+
fi
56
if [ "$#" -ne 1 ];then
67
echo "Usage: ${0} [x86|x86_64|armhf|aarch64]"
78
echo "Example: ${0} x86_64"
89
exit 1
910
fi
11+
set -e
12+
set -o pipefail
13+
set -x
1014
source $GITHUB_WORKSPACE/build/lib.sh
1115
init_lib $1
1216

0 commit comments

Comments
 (0)