Tweak handling of exit status in libdemo

[?]
Mar 22, 2023, 4:02 PM
2R2ODHJNY4METQQDEMSN3DR3YPZTHYNF3JN2VGA4JADM54KC6W5QC

Dependencies

Change contents

  • replacement in libdemo/libdemo.sh at line 163
    [4.432][4.2204:2231](),[2.1177][4.2204:2231](),[4.2204][4.2204:2231]()
    x "$@" || true
    [2.1177]
    [4.4]
    local -r __libdemo_expect=
    democmd "$@"
  • replacement in libdemo/libdemo.sh at line 169
    [4.969][4.4:55](),[4.17][4.4:55]()
    echo "Skipped interactive command '$*"
    [4.969]
    [4.2231]
    if __libdemo_use_colour; then
    local -r prefix="\e[1;31m[!]\e[0m"
    echo -e "${prefix} Skipped interactive command\e[1m" "$@" "\e[0m"
    else
    local -r prefix="[!]"
    echo -e "${prefix} Skipped interactive command" "$@"
    fi
  • replacement in libdemo/libdemo.sh at line 180
    [4.3506][3.138:180]()
    local -r __libdemo_expect=success
    [4.3506]
    [4.3523]
    if __libdemo_is_interactive; then
    local -r __libdemo_expect=
    else
    local -r __libdemo_expect=success
    fi
  • replacement in libdemo/libdemo.sh at line 189
    [4.3561][3.181:223]()
    local -r __libdemo_expect=failure
    [4.3561]
    [4.3578]
    if __libdemo_is_interactive; then
    local -r __libdemo_expect=
    else
    local -r __libdemo_expect=failure
    fi
  • replacement in README.md at line 55
    [4.84][4.84:523]()
    * `x`: Print the provided arguments and execute them, expecting success. Pauses after the command is shown and after the command is run.
    * `f`: Print the provided arguments and execute them, expecting failure. Pauses after the command is shown and after the command is run.
    * `i`: Print the provided arguments and execute them in interactive mode only, ignoring exit status. Pauses after the command is shown and after the command is run.
    [4.84]
    [4.523]
    * `x`: Print the provided arguments and execute them, expecting success in automatic mode and ignoring exit status in interactive mode.
    Pauses after the command is shown and after the command is run.
    * `f`: Print the provided arguments and execute them, expecting failure in automatic mode and ignoring exit status in interactive mode.
    Pauses after the command is shown and after the command is run.
    * `i`: Print the provided arguments and execute them in interactive mode only, ignoring exit status.
    Pauses after the command is shown and after the command is run.