move update code into function
This commit is contained in:
		@@ -1,4 +1,5 @@
 | 
				
			|||||||
if type git &> /dev/null && (( _zeesh_fresh_install != 1 )); then
 | 
					function zeesh_update () {
 | 
				
			||||||
 | 
					    if type git &> /dev/null && (( _zeesh_fresh_install != 1 )); then
 | 
				
			||||||
        ticker_message "zeesh: pulling from git" # TODO: less frequently, and background
 | 
					        ticker_message "zeesh: pulling from git" # TODO: less frequently, and background
 | 
				
			||||||
        start_dir="$(pwd)"
 | 
					        start_dir="$(pwd)"
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
@@ -18,4 +19,7 @@ if type git &> /dev/null && (( _zeesh_fresh_install != 1 )); then
 | 
				
			|||||||
        fi
 | 
					        fi
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
        [[ _zshrc_updates_pending -eq 1 ]] && ticker_message "zeesh: stub updates pending"
 | 
					        [[ _zshrc_updates_pending -eq 1 ]] && ticker_message "zeesh: stub updates pending"
 | 
				
			||||||
fi
 | 
					    fi
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					zeesh_update
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user