From 6f8a6361b10a73f6a7cedcb2650c076d8bf28702 Mon Sep 17 00:00:00 2001 From: micziz Date: Mon, 4 Jul 2022 11:23:26 +0200 Subject: [PATCH] Fix Install script --- install.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index af1a584..1a9510b 100644 --- a/install.sh +++ b/install.sh @@ -152,13 +152,11 @@ install_deps(){ if [ "$(uname)" == "Darwin" ]; then install_macos || install_fail elif [ "$(uname)" == "Linux" ]; then - if [ -n "$(cat /etc/os-release | grep -i "arch")" ]; then - install_arch || install_fail - elif [ -n "$(cat /etc/os-release | grep -i "debian")" ]; then + if [ -x "$(command -v apt-get)" ];then install_deb || install_fail - elif [ -n "$(cat /etc/os-release | grep -i "fedora")" ]; then - install_fedora || install_fail - elif [ -n "$(cat /etc/os-release | grep -i "centos")" ]; then + elif [ -x "$(command -v dnf)" ];then + install_fedora || install_fail + elif [ -x "$(command -v yum)" ]; 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"