diff options
author | Thomas Lange <code@nerdmind.de> | 2019-06-20 02:24:16 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2019-06-20 02:24:16 +0200 |
commit | 9d0bb6823b77ae68128e83d13f2125d65735b1b3 (patch) | |
tree | 41e2b1135dfab68cbe62f7d28fc95bd2b7af3136 /Bash | |
parent | d37b03f5b9433f756760258999ed8eedcc669135 (diff) | |
download | snippets-9d0bb6823b77ae68128e83d13f2125d65735b1b3.tar.gz snippets-9d0bb6823b77ae68128e83d13f2125d65735b1b3.tar.xz snippets-9d0bb6823b77ae68128e83d13f2125d65735b1b3.zip |
Remove closing brackets
Diffstat (limited to 'Bash')
-rwxr-xr-x | Bash/ansi-color-output.sh | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/Bash/ansi-color-output.sh b/Bash/ansi-color-output.sh index 68f9533..0319c07 100755 --- a/Bash/ansi-color-output.sh +++ b/Bash/ansi-color-output.sh @@ -27,23 +27,23 @@ function color() { case $1 in - 030) printf '\033[0;30m%s\033[0m' "$2") ;; - 031) printf '\033[0;31m%s\033[0m' "$2") ;; - 032) printf '\033[0;32m%s\033[0m' "$2") ;; - 033) printf '\033[0;33m%s\033[0m' "$2") ;; - 034) printf '\033[0;34m%s\033[0m' "$2") ;; - 035) printf '\033[0;35m%s\033[0m' "$2") ;; - 036) printf '\033[0;36m%s\033[0m' "$2") ;; - 037) printf '\033[0;37m%s\033[0m' "$2") ;; - 130) printf '\033[1;30m%s\033[0m' "$2") ;; - 131) printf '\033[1;31m%s\033[0m' "$2") ;; - 132) printf '\033[1;32m%s\033[0m' "$2") ;; - 133) printf '\033[1;33m%s\033[0m' "$2") ;; - 134) printf '\033[1;34m%s\033[0m' "$2") ;; - 135) printf '\033[1;35m%s\033[0m' "$2") ;; - 136) printf '\033[1;36m%s\033[0m' "$2") ;; - 137) printf '\033[1;37m%s\033[0m' "$2") ;; + 030) printf '\033[0;30m%s\033[0m' "$2" ;; + 031) printf '\033[0;31m%s\033[0m' "$2" ;; + 032) printf '\033[0;32m%s\033[0m' "$2" ;; + 033) printf '\033[0;33m%s\033[0m' "$2" ;; + 034) printf '\033[0;34m%s\033[0m' "$2" ;; + 035) printf '\033[0;35m%s\033[0m' "$2" ;; + 036) printf '\033[0;36m%s\033[0m' "$2" ;; + 037) printf '\033[0;37m%s\033[0m' "$2" ;; + 130) printf '\033[1;30m%s\033[0m' "$2" ;; + 131) printf '\033[1;31m%s\033[0m' "$2" ;; + 132) printf '\033[1;32m%s\033[0m' "$2" ;; + 133) printf '\033[1;33m%s\033[0m' "$2" ;; + 134) printf '\033[1;34m%s\033[0m' "$2" ;; + 135) printf '\033[1;35m%s\033[0m' "$2" ;; + 136) printf '\033[1;36m%s\033[0m' "$2" ;; + 137) printf '\033[1;37m%s\033[0m' "$2" ;; esac } -echo "Example: $(color 134 "Hello World")!"
\ No newline at end of file +echo "Example: $(color 134 "Hello World")!" |