build.sh: combine both commands with '&&'

* if first command fails, second does not get executed
This commit is contained in:
Dominic Reich 2016-05-17 00:37:23 +02:00
parent 6dda64dcbe
commit e4fae2d664

View file

@ -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/