From 8b229ffe03b8f343bda526734de031fb5442b98b Mon Sep 17 00:00:00 2001 From: eoli3n Date: Fri, 22 Dec 2017 13:35:21 +0100 Subject: [PATCH] updated install script to support other distros --- README.md | 9 ++++++++- install.sh | 6 +----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e9a1e54..22c4735 100644 --- a/README.md +++ b/README.md @@ -59,10 +59,17 @@ To use dark theme, go to graphical configuration and click ``Use GTK+ Theme`` # Server Environment -Supported OS : +## Deps + +- git +- ansible + +## Supported OS - Archlinux +## Installation + ``` git clone --recursive https://github.com/eoli3n/dotfiles # To list tags diff --git a/install.sh b/install.sh index 00080b7..65af326 100755 --- a/install.sh +++ b/install.sh @@ -2,11 +2,7 @@ cd "$( dirname "${BASH_SOURCE[0]}" )" -if [[ ! -f /usr/bin/ansible ]] -then - echo "Please install ansible" - exit 1 -fi +command -v ansible-playbook >/dev/null 2>&1 || { echo >&2 "I require ansible but it's not installed. Aborting."; exit 1; } if [[ -z ${1+x} ]] then