From 0591cf84fe3679b5ff3c1e102ee5d1d4e4f8fc76 Mon Sep 17 00:00:00 2001 From: micziz <99438936+micziz@users.noreply.github.com> Date: Wed, 15 Jun 2022 20:13:18 +0200 Subject: [PATCH] Add -n when checking distro Co-authored-by: drugsosos <44712637+Drugsosos@users.noreply.github.com> --- install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index df88a23..6302335 100644 --- a/install.sh +++ b/install.sh @@ -152,13 +152,13 @@ install_deps(){ if [ "$(uname)" == "Darwin" ]; then install_macos || install_fail elif [ "$(uname)" == "Linux" ]; then - if [ "$(cat /etc/os-release | grep -i "arch")" ]; then + if [ -n "$(cat /etc/os-release | grep -i "arch")" ]; then install_arch || install_fail - elif [ "$(cat /etc/os-release | grep -i "debian")" ]; then + elif [ -n "$(cat /etc/os-release | grep -i "debian")" ]; then install_deb || install_fail - elif [ "$(cat /etc/os-release | grep -i "fedora")" ]; then + elif [ -n "$(cat /etc/os-release | grep -i "fedora")" ]; then install_fedora || install_fail - elif [ "$(cat /etc/os-release | grep -i "centos")" ]; then + elif [ -n "$(cat /etc/os-release | grep -i "centos")" ]; then install_centos || install_fail else printf "Your OS is not supported\n Please install python3, pip3 and git manually\n After that, run the script again with the -p option to install python and playwright dependencies\n If you want to add support for your OS, please open a pull request on github\n https://github.com/elebumm/RedditVideoMakerBot"