Only run tset if running in a interractive tty

master
Daniel Berteaud 5 years ago
parent b9261c3ba4
commit 00d6b23cec
  1. 2
      zmldapsync/zmldapsync.pl

@ -666,9 +666,11 @@ DOMAIN: foreach my $domain ( keys $conf->{domains} ) {
} }
} }
if ( -t STDIN and -t STDOUT ) {
# zmprov breaks terminal (no echo to your input after execution) # zmprov breaks terminal (no echo to your input after execution)
# fix it with a tset # fix it with a tset
system('tset'); system('tset');
}
# Exit with the global exit code (if at least one domain had an error, it'll be != 0) # Exit with the global exit code (if at least one domain had an error, it'll be != 0)
exit $exit; exit $exit;

Loading…
Cancel
Save