mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
Fix shell_check()
Change the shell_check to check the current shell, instead of the default shell
This commit is contained in:
parent
fe0b379ed1
commit
805dec2b4d
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ msg_error() {
|
|||
|
||||
# Check if the shell is using bash
|
||||
shell_check() {
|
||||
if [[ "$(basename "$SHELL")" != "bash" ]]; then
|
||||
if [[ "$(basename "$0")" != "bash" ]]; then
|
||||
clear
|
||||
msg_error "Your default shell is currently not set to Bash. To use these scripts, please switch to the Bash shell."
|
||||
echo -e "\nExiting..."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue