Skip to content

Commit

Permalink
Show different message for update in install script.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyfdecyf committed Jul 10, 2013
1 parent 1886381 commit ec9a44b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions install-cow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ chmod +x $tmpbin ||
# Download sample config file if no configuration directory present
doc_base="https://github.com/cyfdecyf/cow/raw/master/doc"
config_dir="$HOME/.cow"
is_update=true
if [ ! -e $config_dir ]; then
is_update=false
sample_config_base="${doc_base}/sample-config"
echo "Downloading sample config file to $config_dir"
mkdir -p $config_dir || exit_on_fail "Can't create $config_dir directory"
Expand Down Expand Up @@ -120,6 +122,11 @@ rmdir $tmpdir

# Done
echo
echo "Installation finished."
echo "Please edit $config_dir/rc according to your own settings."
echo 'After that, execute "cow &" to start cow and run in background.'
if $is_update; then
echo "Update finished."
else
echo "Installation finished."
echo "Please edit $config_dir/rc according to your own settings."
echo 'After that, execute "cow &" to start cow and run in background.'
fi

0 comments on commit ec9a44b

Please sign in to comment.