Commit 018d5373 authored by cupric's avatar cupric
Browse files

added check for zsh before blinding changing to a shell that may (or may not) exist

No related merge requests found
Showing with 3 additions and 3 deletions
+3 -3
......@@ -14,8 +14,7 @@ deb_install () {
sudo apt install $1 -y
}
dep_check () {
# Checks for zsh, git, curl, fzy, and antibody
dep_check () { # Checks for zsh, git, curl, fzy, and antibody
type zsh >/dev/null 2>&1 || { deb_install "zsh"; }
type git >/dev/null 2>&1 || { deb_install "git"; }
......@@ -40,7 +39,8 @@ install_antibody () {
}
check_zsh () {
chsh -s /bin/zsh
# Change shell if zsh was installed
type zsh >/dev/null 2>&1 || { chsh -s /bin/zsh }
}
directory_clean () {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment