From 43fa88e989ab0b846a91f49b381895c983fe95c2 Mon Sep 17 00:00:00 2001 From: davor Date: Tue, 11 Sep 2012 12:31:02 +0200 Subject: Added silent mode. --- bin/opentox-client-install | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'bin') diff --git a/bin/opentox-client-install b/bin/opentox-client-install index 61e2edf..17e20f2 100755 --- a/bin/opentox-client-install +++ b/bin/opentox-client-install @@ -6,10 +6,20 @@ SELF=$(basename $0 -install) [ "`id -u`" = "0" ] && echo "This script must be run as non-root." 1>&2 && exit 1 -echo -echo "Welcome to service installation ( to continue)." -read delete_me - +SILENT=false +if [ -n "$1" ] +then + if [ "$1" = "silent" ] + then + SILENT=true + fi +fi + +if [ $SILENT = false ]; then + echo + echo "Welcome to service installation ( to continue)." + read delete_me +fi # check wd is root of service DIR=`pwd` @@ -40,7 +50,9 @@ install_ruby echo install_with_bundler -notify +if [ $SILENT = false ]; then + notify +fi # return to wd cd "$DIR" -- cgit v1.2.3