mirror of https://github.com/openXC7/prjxray.git
16 lines
288 B
Bash
16 lines
288 B
Bash
# header for fuzzer generate.sh scripts
|
|
|
|
if [ -z "$XRAY_DATABASE" ]; then
|
|
echo "No XRAY environment found. Make sure to source the settings file first!"
|
|
exit 1
|
|
fi
|
|
|
|
set -ex
|
|
|
|
# for some reason on sourced script set -e doesn't work
|
|
test $# = 1 || exit 1
|
|
test ! -e "$1"
|
|
mkdir "$1"
|
|
cd "$1"
|
|
|