linting
This commit is contained in:
parent
2c27688a65
commit
d88d70df6b
2 changed files with 15 additions and 15 deletions
|
@ -14,7 +14,7 @@ line() {
|
||||||
peoples() {
|
peoples() {
|
||||||
i=1
|
i=1
|
||||||
while [[ $i -le $COLUMNS ]]; do
|
while [[ $i -le $COLUMNS ]]; do
|
||||||
echo -en "\U1FBC$((RANDOM % 5 +5))"
|
echo -en "\U1FBC$((RANDOM % 5 + 5))"
|
||||||
i=$((i + 1))
|
i=$((i + 1))
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,25 +8,25 @@ digit() {
|
||||||
|
|
||||||
print-time() {
|
print-time() {
|
||||||
TIMESTAMP="$1"
|
TIMESTAMP="$1"
|
||||||
for (( i=0; i<${#TIMESTAMP}; i++ )); do
|
for ((i = 0; i < ${#TIMESTAMP}; i++)); do
|
||||||
digit "${TIMESTAMP:$i:1}"
|
digit "${TIMESTAMP:i:1}"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
spacing() {
|
spacing() {
|
||||||
for (( i=0; i<$1; i++ )); do
|
for ((i = 0; i < $1; i++)); do
|
||||||
printf "%s" "-"
|
printf "%s" "-"
|
||||||
done
|
done
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
epoch=$(print-time "$(date +'%s')")
|
epoch=$(print-time "$(date +'%s')")
|
||||||
side=$(spacing $(((COLUMNS-(${#epoch}+6))/2)))
|
side=$(spacing $(((COLUMNS - (${#epoch} + 6)) / 2)))
|
||||||
|
|
||||||
print-line() {
|
print-line() {
|
||||||
printf "\n\033[1m%s [ \033[1;9%dm%s\033[39m ] %s\033[0m\n" \
|
printf "\n\033[1m%s [ \033[1;9%dm%s\033[39m ] %s\033[0m\n" \
|
||||||
"$side" \
|
"$side" \
|
||||||
"$((RANDOM % 7+1))" \
|
"$((RANDOM % 7 + 1))" \
|
||||||
"$1" \
|
"$1" \
|
||||||
"$side"
|
"$side"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue