From e4fae2d66441e8acba372017582a526f697f941f Mon Sep 17 00:00:00 2001 From: Dominic Reich Date: Tue, 17 May 2016 00:37:23 +0200 Subject: [PATCH] build.sh: combine both commands with '&&' * if first command fails, second does not get executed --- build.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 71b6655..b05d8a4 100755 --- a/build.sh +++ b/build.sh @@ -1,3 +1,2 @@ #!/bin/sh -g++ -O2 -pipe -fomit-frame-pointer -Wall -s -pie -fpie -lboost_system -o blacklist blacklist.cpp -sudo cp blacklist /usr/local/bin/ +g++ -O2 -pipe -fomit-frame-pointer -Wall -s -pie -fpie -lboost_system -o blacklist blacklist.cpp && cp blacklist /usr/local/bin/