misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2018-02-11 19:03:10 +01:00
commit e7ecd1133d

View file

@ -1,11 +1,7 @@
#!/bin/bash
BUILD_FOLDER=build
VERSION=$(cat core/banner.go | grep Version | cut -d '"' -f 2)
clean() {
rm -rf build
mkdir build
}
bin_dep() {
BIN=$1
which $BIN > /dev/null || { echo "@ Dependency $BIN not found !"; exit 1; }
@ -94,8 +90,9 @@ build_windows_amd64() {
scp -C winvm:$DIR/$OUTPUT . > /dev/null
}
clean
cd build
rm -rf $BUILD_FOLDER
mkdir $BUILD_FOLDER
cd $BUILD_FOLDER
build_linux_amd64 bettercap-ng_linux_amd64_$VERSION
build_linux_arm7 bettercap-ng_linux_arm7_$VERSION