diff options
author | terminaldweller <thabogre@gmail.com> | 2022-02-21 15:22:59 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-02-21 15:22:59 +0000 |
commit | 26d4cd29fe3e7cfc59c7964ddd054e83ce4d95dd (patch) | |
tree | 8669bd7744e81f9575264dc8db0055e6641e1618 /bin/color | |
parent | updated haproxy for cargo (diff) | |
download | scripts-26d4cd29fe3e7cfc59c7964ddd054e83ce4d95dd.tar.gz scripts-26d4cd29fe3e7cfc59c7964ddd054e83ce4d95dd.zip |
updates
Diffstat (limited to '')
-rwxr-xr-x | bin/color | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,6 +1,7 @@ -#!/bin/sh -for i in {0..255};do - if (( i % 12 == 0 )); then echo;fi +#!/bin/bash +set -e +for i in $(seq 0 255);do + if [ $(( i % 12 )) = 0 ];then echo ;fi printf "\x1b[38;5;${i}mcolour${i}\x1b[0m\t" done echo |