From abb964488fca8a961770b5186bdd30ae54b23438 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Sun, 4 Sep 2022 02:03:26 -0700 Subject: [PATCH] :boom: Removed dependencycheck.hs --- scripts/dependencycheck.sh | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100755 scripts/dependencycheck.sh diff --git a/scripts/dependencycheck.sh b/scripts/dependencycheck.sh deleted file mode 100755 index 11e75af1..00000000 --- a/scripts/dependencycheck.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash - -# Error handling -set -e - -# For styling/colorizing output -txtbld=$(tput bold) -# txtblue=${txtbld}$(tput setaf 4) -# txtgreen=${txtbld}$(tput setaf 2) -txtred=${txtbld}$(tput setaf 1) -# txtyellow=${txtbld}$(tput setaf 3) -txtwhite=${txtbld}$(tput setaf 7) - -# Dependency check -function dependencycheck() -{ - # lady is just for demo purposes - dependencies=("xclip" "git" "lady") - numdependencies=3 - missingdependencies=0 - for ((i = 0; i < numdependencies; i++)) ; - do - if ! command -v "${dependencies[$i]}" &> /dev/null - then - echo "${txtred}dependency not met: ${dependencies[$i]}${txtwhite}" - missingdependencies=$((missingdependencies+1)) - fi - done -} - -#invoke function -dependencycheck - -if [ $missingdependencies -gt 0 ] ; then - echo "${txtred}Please install needed dependencies${txtwhite}" - exit 1 -fi