]> Frank Brehm's Git Trees - pixelpark/pp-admin-tools.git/commitdiff
remove clear screen comand if using action from file
authorAndreas Gerstenberg <andreas.gerstenberg@publicispixelpark.de>
Mon, 12 Aug 2024 10:23:41 +0000 (12:23 +0200)
committerAndreas Gerstenberg <andreas.gerstenberg@publicispixelpark.de>
Mon, 12 Aug 2024 10:23:41 +0000 (12:23 +0200)
scripts/ldap_crm_usercreate.sh

index 4f87bb7ec7d13ac44281eeb1a337803a9e9958f4..a35956477b99501668f9258f4dbb2b794d509387 100755 (executable)
@@ -159,12 +159,12 @@ outldapldif() {
 let RUN++
 
 #shell output
-printf "\033c"
+[[ "$file" ]] || printf "\033c"
 echo -ne "---\n"
 echo -ne "Username: $LOWERCMAIL\n"
 echo -ne "Password: $CLEARPW\n"
 echo -ne "---\n"
-echo -ne "\n\n"
+[[ "$file" ]] || echo -ne "\n\n"
 echo "dn: uid=$LOWERCMAIL,ou=People,ou=CRM,ou=Applications,o=Pixelpark,o=isp
 cn: $GIVENNAMES $SURNAME
 givenname: $GIVENNAMES