mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	iiab-update: Skip Admin Console ./install if already up-to-date
This commit is contained in:
		
							parent
							
								
									cdd94f84d9
								
							
						
					
					
						commit
						af3660045f
					
				
					 1 changed files with 8 additions and 2 deletions
				
			
		| 
						 | 
					@ -111,10 +111,16 @@
 | 
				
			||||||
                echo -e "\n\n\e[41;1mIn /opt/iiab/iiab-admin-console, (1) 'git branch' MUST show current branch 'master' and (2) 'git status' must show NO MODIFIED FILES.\e[0m\n\n"
 | 
					                echo -e "\n\n\e[41;1mIn /opt/iiab/iiab-admin-console, (1) 'git branch' MUST show current branch 'master' and (2) 'git status' must show NO MODIFIED FILES.\e[0m\n\n"
 | 
				
			||||||
                exit 1
 | 
					                exit 1
 | 
				
			||||||
            fi
 | 
					            fi
 | 
				
			||||||
 | 
					            GITHASH1=$(git rev-parse HEAD)
 | 
				
			||||||
            echo -e "\n\e[4mNow running: git pull https://github.com/iiab/iiab-admin-console --no-rebase --no-edit\e[0m\n"
 | 
					            echo -e "\n\e[4mNow running: git pull https://github.com/iiab/iiab-admin-console --no-rebase --no-edit\e[0m\n"
 | 
				
			||||||
            git pull https://github.com/iiab/iiab-admin-console --no-rebase --no-edit
 | 
					            git pull https://github.com/iiab/iiab-admin-console --no-rebase --no-edit
 | 
				
			||||||
            echo -e "\n\e[4mNow running: ./install\e[0m\n"
 | 
					            GITHASH2=$(git rev-parse HEAD)
 | 
				
			||||||
            ./install
 | 
					            if [[ $GITHASH1 != $GITHASH2 ]]; then
 | 
				
			||||||
 | 
					                echo -e "\n\e[4mNow running: ./install\e[0m\n"
 | 
				
			||||||
 | 
					                ./install
 | 
				
			||||||
 | 
					            else
 | 
				
			||||||
 | 
					                echo -e "\n\e[33mSkipping Admin Console './install' — as it appears up-to-date!\e[0m"
 | 
				
			||||||
 | 
					            fi
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue