mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 10:22:50 +00:00 
			
		
		
		
	Update shell check (#7796)
This commit is contained in:
		@@ -42,11 +42,11 @@ error_handler() {
 | 
			
		||||
  echo -e "\n$error_message\n"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# Check if the shell is using bash
 | 
			
		||||
# Check if the current shell is using bash
 | 
			
		||||
shell_check() {
 | 
			
		||||
  if [[ "$(basename "$SHELL")" != "bash" ]]; then
 | 
			
		||||
  if [[ "$(ps -p $$ -o comm=)" != "bash" ]]; then
 | 
			
		||||
    clear
 | 
			
		||||
    msg_error "Your default shell is currently not set to Bash. To use these scripts, please switch to the Bash shell."
 | 
			
		||||
    msg_error "Your default shell is not bash. Please report this to our github issues or discord."
 | 
			
		||||
    echo -e "\nExiting..."
 | 
			
		||||
    sleep 2
 | 
			
		||||
    exit
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user