Skip to content

Commit

Permalink
[script] Redirect output in a simpler and more natural way
Browse files Browse the repository at this point in the history
  • Loading branch information
janosgyerik authored and sns-seb committed Nov 23, 2016
1 parent 78d521c commit 7ed6224
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ while getopts ":p:" opt; do
p) PATCHES=$OPTARG
;;
\?)
>&2 echo "Unsupported option $OPTARG"
echo "Unsupported option $OPTARG" >&2
exit 1
;;
esac
Expand All @@ -24,14 +24,14 @@ else
OS='linux-x86-64'
fi

ls sonar-application/target/sonarqube-*.zip 1> /dev/null 2>&1
ls sonar-application/target/sonarqube-*.zip &> /dev/null
if [ "$?" != "0" ]; then
echo 'Sources are not built'
./build.sh
fi

cd sonar-application/target/
ls sonarqube-*/bin/$OS/sonar.sh 1> /dev/null 2>&1
ls sonarqube-*/bin/$OS/sonar.sh &> /dev/null
if [ "$?" != "0" ]; then
echo "Unzipping SQ..."
unzip -qq sonarqube-*.zip
Expand Down

0 comments on commit 7ed6224

Please sign in to comment.