Skip to content

Commit

Permalink
lucascbeyeler#169 fix awk print
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Kirchner committed May 6, 2022
1 parent f857b73 commit 3ace5b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
OLD/
*.old
.idea/
6 changes: 3 additions & 3 deletions project/lib/bash/ParallelAction.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ function mailbox_backup()
###############################################################################
function ldap_restore()
{
ldapdelete -r -x -H "$LDAPSERVER" -D "$LDAPADMIN" -c -w "$LDAPPASS" \
"$(grep ^dn: "$WORKDIR"/"$1"/"$2".ldiff | awk 'print $2')" > /dev/null 2>&1
ERR=$( (ldapadd -x -H "$LDAPSERVER" -D "$LDAPADMIN" \
ldapdelete -Z -r -x -H "$LDAPSERVER" -D "$LDAPADMIN" -c -w "$LDAPPASS" \
"$(grep ^dn: "$WORKDIR"/"$1"/"$2".ldiff | awk '{print $2}')" > /dev/null 2>&1
ERR=$( (ldapadd -Z -x -H "$LDAPSERVER" -D "$LDAPADMIN" \
-c -w "$LDAPPASS" -f "$WORKDIR"/"$1"/"$2".ldiff) 2>&1)
BASHERRCODE=$?
if ! [[ $BASHERRCODE -eq 0 ]]; then
Expand Down

0 comments on commit 3ace5b3

Please sign in to comment.