Some fixes
This commit is contained in:
		
							parent
							
								
									425b46aaad
								
							
						
					
					
						commit
						6063942d29
					
				@ -38,7 +38,7 @@ test_command() {
 | 
			
		||||
yes_no_ask_required() {
 | 
			
		||||
    yes_no_ask $@ "(required)"
 | 
			
		||||
    if [ $? -ne 0 ]; then
 | 
			
		||||
        error "can't continue"
 | 
			
		||||
        error "refused to perform required task, can't continue"
 | 
			
		||||
        exit 1
 | 
			
		||||
    fi
 | 
			
		||||
}
 | 
			
		||||
@ -56,7 +56,7 @@ yes_no_ask() {
 | 
			
		||||
install() {
 | 
			
		||||
    test_command apt
 | 
			
		||||
    if [ $? -eq 0 ]; then
 | 
			
		||||
        sudo apt install $1
 | 
			
		||||
        sudo apt install -y $1
 | 
			
		||||
        return
 | 
			
		||||
    fi
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user