Browse Source

Merge pull request #2 from liaoishere/master

Suppress the ouput when using quiet option
pull/3/head
Marc Schöchlin 9 years ago
committed by GitHub
parent
commit
ab308b84e7
1 changed files with 10 additions and 6 deletions
  1. +10
    -6
      helpers/auditshell_script.patch

+ 10
- 6
helpers/auditshell_script.patch View File

@ -95,10 +95,12 @@ index 242b815..778fbbe 100644
getmaster(); getmaster();
- if (!qflg) - if (!qflg)
+ +
+ if ((!qflg) && (dflg == 1)){
+ printf(_("Script started, file descriptor number is %s\n"), fname);
+ }else{
+ if (!qflg) {
+ if (dflg == 1){
+ printf(_("Script started, file descriptor number is %s\n"), fname);
+ }else{
printf(_("Script started, file is %s\n"), fname); printf(_("Script started, file is %s\n"), fname);
+ }
+ } + }
+ +
fixtty(); fixtty();
@ -110,10 +112,12 @@ index 242b815..778fbbe 100644
tcsetattr(STDIN_FILENO, TCSADRAIN, &tt); tcsetattr(STDIN_FILENO, TCSADRAIN, &tt);
- if (!qflg) - if (!qflg)
+ +
+ if ((!qflg) && (dflg == 1)){
+ printf(_("Script done, file descriptor number is %s\n"), fname);
+ }else{
+ if (!qflg) {
+ if (dflg == 1){
+ printf(_("Script done, file descriptor number is %s\n"), fname);
+ }else{
printf(_("Script done, file is %s\n"), fname); printf(_("Script done, file is %s\n"), fname);
+ }
+ } + }
+ +
+ +


Loading…
Cancel
Save