From 791a8e96ac74b5b72f1b3a68d21e6af894e9e885 Mon Sep 17 00:00:00 2001 From: evilsocket Date: Tue, 27 Feb 2018 20:26:11 +0100 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 9a3f2199..404c906f 100755 --- a/build.sh +++ b/build.sh @@ -152,13 +152,13 @@ build_android_arm() { OUTPUT=$1 echo "@ Updating repo on Android host ..." - ssh -p 8022 root@shield "cd $DIR && rm bettercap && git pull" > /dev/null + ssh -p 8022 root@shield "cd "$DIR" && rm -rf bettercap* && git pull && go get ./..." echo "@ Building $OUTPUT ..." - ssh -p 8022 root@shield "cd $DIR && go build -o $OUTPUT ." > /dev/null + ssh -p 8022 root@shield "cd $DIR && go build -o $OUTPUT ." echo "@ Downloading $OUTPUT ..." - scp -C -P 8022 root@shield:$DIR/$OUTPUT . > /dev/null + scp -C -P 8022 root@shield:$DIR/$OUTPUT . } rm -rf $BUILD_FOLDER