Skip to content

Commit

Permalink
treehouses led random 3 lines (fixes #2046) (#2047)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
rjpadilla and dogi authored Feb 27, 2021
1 parent 9221064 commit 7825c20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/led.sh
Original file line number Diff line number Diff line change
Expand Up @@ -881,12 +881,12 @@ function sandstorm {

function random {
echo "selecting from: "
led_help | grep "\[" | cut -d "[" -f2 | cut -d "]" -f1 | sed -n '1!p'| head -2 | sed 's/|/ /g'| sed -e 's/ random//'
led_help | grep "\[" | cut -d "[" -f2 | cut -d "]" -f1 | sed -n '1!p'| head -3 | sed 's/|/ /g'| sed -e 's/ random//'
rando="$(led_help | grep "\[" \
| cut -d "[" -f2 \
| cut -d "]" -f1 \
| sed -n '1!p' \
| head -2 \
| head -3 \
| sed 's/|/\n/g' \
| sed -e 's/ random//' \
| shuf -n 1)"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@treehouses/cli",
"version": "1.25.9",
"version": "1.25.10",
"remote": "4000",
"description": "Thin command-line interface for Raspberry Pi low level configuration.",
"main": "cli.sh",
Expand Down

0 comments on commit 7825c20

Please sign in to comment.