Last active
December 22, 2015 04:09
-
-
Save rahulinux/6415072 to your computer and use it in GitHub Desktop.
Revisions
-
rahulinux revised this gist
Sep 2, 2013 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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)" (( $status == 0 )) && echo $succeeded || echo $failed -
rahulinux created this gist
Sep 2, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 }