Skip to content
Extraits de code Groupes Projets
Valider 5682cf59 rédigé par hemanth's avatar hemanth Validation de Raphael Sofaer
Parcourir les fichiers

Added a check on if the user has already cloned and also a set -e to exit...

Added a check on if the user has already cloned and also a set -e to exit immediately if a command exits with a non-zero status.
parent d4ad9436
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -2,7 +2,9 @@
# Author : hemanth.hm@gmail.com
# Site : www.h3manth.com
# This script helps to setup diaspora.
#
# Exit immediately if a command exits with a non-zero status.
set -e
# Set extented globbing
shopt -s extglob
......@@ -82,9 +84,11 @@ echo "Installed blunder.."
# Take a clone of Diaspora
(
echo "Clone diaspora source.."
git clone http://github.com/diaspora/diaspora.git
# Check if the user is already in a cloned source if not clone the source
[[ $( basename $PWD ) == "diaspora" ]] && echo "Already in diaspora directory" || git clone http://github.com/diaspora/diaspora.git ; cd diaspora
echo "Cloned the source.."
# Install extra gems
cd diaspora
echo "Installing more gems.."
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter