mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 10:46:57 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
53c2bf7ff3
commit
e7ecd1133d
1 changed files with 4 additions and 7 deletions
11
build.sh
11
build.sh
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue