[Lunar-commits] <lunar-tools> lservices: Make sure the list is unique, this way we can allow services from zlocal too

Stefan Wold ratler at lunar-linux.org
Sat Aug 4 17:10:05 CEST 2012


commit 1792972a1d10e9a250ba89ac8dd5202e076ea483
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Sat, 04 Aug 2012 08:10:05 -0700
URL: https://github.com/lunar-linux/lunar-tools/commit/1792972a1d10e9a250ba89ac8dd5202e076ea483

lservices: Make sure the list is unique, this way we can allow services from zlocal too
---
  lservices/lservices                                          +1/-1     
  1 files changed, 1 insertions (+), 1 deletions (-)

--- a/lservices/lservices
+++ b/lservices/lservices
@@ -169,7 +169,7 @@ service_menu_systemd() {(
 )}
 
 list_systemd_services() {(
-  for SERVICE in $(find $MOONBASE -name "*.service" -o -name "*.socket" ! -regex "$MOONBASE/zlocal/.*" | sed 's;.*/;;' | sort); do
+  for SERVICE in $(find $MOONBASE -name "*.service" -o -name "*.socket" | sed 's;.*/;;' | sort | uniq); do
     echo $SERVICE | grep -q @ && continue
     [ -f "$SYSTEMDUNITDIR/$SERVICE" ] || continue
     DESCRIPTION=$(grep 'Description=' $SYSTEMDUNITDIR/$SERVICE | cut -d= -f2-)




More information about the Lunar-commits mailing list