From c7560ec04185b51b127c3c54adc11c42cefe72e5 Mon Sep 17 00:00:00 2001 From: Brian Flowers Date: Sun, 18 Sep 2016 19:02:01 -0400 Subject: [PATCH] Fixing error messages caused by plugin template --- bdsm.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bdsm.sh b/bdsm.sh index 223cd6a..f177dc7 100755 --- a/bdsm.sh +++ b/bdsm.sh @@ -315,7 +315,11 @@ configure() header "Configuring $host" #availServices=$(ls /home/bdsm/bdsm.d | cut -d'.' -f1 | sort -u) availServices=() - ls /home/bdsm/bdsm.d | cut -d'.' -f1 | sort -u | while read service; do + find /home/bdsm/bdsm.d -executable -type f | \ + sed 's|/home/bdsm/bdsm.d/||g' | \ + cut -d'.' -f1 | \ + sort -u | \ + while read service; do svc=`echo $service | sed 's/(.*)$//g'` if [ -f /home/bdsm/bdsm.d/$svc.$type ]; then serviceFile="$svc.$type" -- 1.8.3.1