mirror of https://github.com/tteck/Proxmox.git
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
|
@ -73,7 +73,7 @@ msg_error() {
|
||||||
|
|
||||||
# Check if the shell is using bash
|
# Check if the shell is using bash
|
||||||
shell_check() {
|
shell_check() {
|
||||||
if [[ "$(basename "$SHELL")" != "bash" ]]; then
|
if [[ "$(basename "$0")" != "bash" ]]; then
|
||||||
clear
|
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 currently not set to Bash. To use these scripts, please switch to the Bash shell."
|
||||||
echo -e "\nExiting..."
|
echo -e "\nExiting..."
|
||||||
|
|
Loading…
Reference in New Issue