Changes

From SME Server
Jump to navigationJump to search
68 bytes added ,  01:32, 17 June 2015
Line 594: Line 594:     
  #test if all arguments are here
 
  #test if all arguments are here
     if [[ -z $3 ]]; then
+
     <nowiki>if [[ -z $3 ]]; then</nowiki>
 
     echo "########################################################################################################"
 
     echo "########################################################################################################"
 
     echo "    you must give arguments  : srpm-import Folder_Name Branch_Name(smeX|contribsX) Url_2_Remote_Srpm"
 
     echo "    you must give arguments  : srpm-import Folder_Name Branch_Name(smeX|contribsX) Url_2_Remote_Srpm"
Line 602: Line 602:  
   
 
   
 
  #we test the branchname
 
  #we test the branchname
     if [[ $2 != "sme"* && $2 != "contribs"* ]];then
+
     <nowiki>if [[ $2 != "sme"* && $2 != "contribs"* ]];then</nowiki>
 
     echo ""
 
     echo ""
 
     echo "the branchname name is not good, must be smeX or contribsX"  
 
     echo "the branchname name is not good, must be smeX or contribsX"  
Line 618: Line 618:  
   
 
   
 
  #test root cvs folder
 
  #test root cvs folder
     if [[ -d $1 ]]; then
+
     <nowiki>if [[ -d $1 ]]; then</nowiki>
 
     echo "the source folder $1 already exists"
 
     echo "the source folder $1 already exists"
 
     fi
 
     fi
Line 628: Line 628:  
   
 
   
 
  #test the branch name
 
  #test the branch name
     if [[ -d $2 ]];then
+
     <nowiki>if [[ -d $2 ]];then</nowiki>
 
     echo ""
 
     echo ""
 
     echo "the branch name already exists : we stop the script"
 
     echo "the branch name already exists : we stop the script"

Navigation menu