new function to update debian based systems
This commit is contained in:
		@@ -0,0 +1,9 @@
 | 
			
		||||
updateSystem() {
 | 
			
		||||
   noconfirm=
 | 
			
		||||
   if [[ $1 == "-y" ]]; then
 | 
			
		||||
      noconfirm="-y"
 | 
			
		||||
   fi
 | 
			
		||||
   sudo apt update;
 | 
			
		||||
   sudo apt upgrade $noconfirm;
 | 
			
		||||
   sudo apt autoremove $noconfirm;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user