Skip to content

Instantly share code, notes, and snippets.

@rahulinux
Last active December 22, 2015 04:09
Show Gist options
  • Select an option

  • Save rahulinux/6415072 to your computer and use it in GitHub Desktop.

Select an option

Save rahulinux/6415072 to your computer and use it in GitHub Desktop.

Revisions

  1. rahulinux revised this gist Sep 2, 2013. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion status_msg.sh
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,6 @@ status_msg() {
    local status=$?
    local failed="$(tput bold)$(tput setf 4)[failed]$(tput sgr0)"
    local succeeded="$(tput bold)$(tput setf 2)[succeeded]$(tput sgr0)"
    echo $status
    (( $status == 0 )) &&
    echo $succeeded ||
    echo $failed
  2. rahulinux created this gist Sep 2, 2013.
    9 changes: 9 additions & 0 deletions status_msg.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    status_msg() {
    local status=$?
    local failed="$(tput bold)$(tput setf 4)[failed]$(tput sgr0)"
    local succeeded="$(tput bold)$(tput setf 2)[succeeded]$(tput sgr0)"
    echo $status
    (( $status == 0 )) &&
    echo $succeeded ||
    echo $failed
    }