mirror of https://github.com/tteck/Proxmox.git
				
				
				
			
							parent
							
								
									43de9ca99f
								
							
						
					
					
						commit
						998235e92d
					
				| 
						 | 
					@ -82,16 +82,6 @@ check_root() {
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Check if the shell is using bash
 | 
					 | 
				
			||||||
check_shell() {
 | 
					 | 
				
			||||||
  if [[ "$(basename "$SHELL")" != "bash" ]]; then
 | 
					 | 
				
			||||||
    msg_error "Your current shell is not Bash. To utilize these scripts, please switch to the Bash shell.
 | 
					 | 
				
			||||||
    echo -e "\nExiting..."
 | 
					 | 
				
			||||||
    sleep 2
 | 
					 | 
				
			||||||
    exit
 | 
					 | 
				
			||||||
  fi
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported.
 | 
					# This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported.
 | 
				
			||||||
pve_check() {
 | 
					pve_check() {
 | 
				
			||||||
  if [ $(pveversion | grep "pve-manager/8" | wc -l) -ne 1 ]; then
 | 
					  if [ $(pveversion | grep "pve-manager/8" | wc -l) -ne 1 ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue