From 6f34a278d360091aefd588f079c75a30ba3c8df7 Mon Sep 17 00:00:00 2001 From: PierreGoude Date: Tue, 31 Jan 2017 09:21:20 +0100 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ADconnection.sh b/ADconnection.sh index 73c0ae1..67fec62 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -30,7 +30,7 @@ sudo apt-get install realmd adcli sssd -y sudo apt-get install ntp -y clear -DOMAIN=$(realm discover | grep -i realm.name | cut -d ':' -f2) +DOMAIN=$(realm discover | grep -i realm.name | cut -d ':' -f2 | sed -e 's/^[[:space:]]*//') echo "${NUMBER}I seached for an available domain and found >>> $DOMAIN <<< ${END}" read -p "Do you wish to use it (y/n)?" yn