From 5e5a69eef85e7f8f477adc4009c9dc5a03014fe7 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Thu, 7 Dec 2017 06:17:01 +0000 Subject: [PATCH] bin/nb-install --- bin/nb-install | 2 +- bin/nb-update | 2 +- etc/profile.d/ldap.sh | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/nb-install b/bin/nb-install index a674f038..b4511ef8 100755 --- a/bin/nb-install +++ b/bin/nb-install @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/usr/bin/env sh ############################################################################## # # Install - NB 18.11.14 diff --git a/bin/nb-update b/bin/nb-update index edde8b0f..faf7a4e5 100755 --- a/bin/nb-update +++ b/bin/nb-update @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/usr/bin/env sh ##################################################################### # # Pull update and run install script diff --git a/etc/profile.d/ldap.sh b/etc/profile.d/ldap.sh index c506c15c..7035ae9d 100644 --- a/etc/profile.d/ldap.sh +++ b/etc/profile.d/ldap.sh @@ -91,8 +91,9 @@ ldap_gup() { -h|-help) echo $usage; return;; esac + eval ' local args - slapcat_csv '(&(objectClass=posixGroup)(memberUid=*))' cn memberUid | while read -r -a rec; do + slapcat_csv "(&(objectClass=posixGroup)(memberUid=*))" cn memberUid | while read -r -a rec; do group=${rec[0]} rec=("${rec[@]:1}") # shift @@ -108,6 +109,7 @@ ldap_gup() { done done + ' return } -- 2.47.3