Skip to content

Commit 7825c20

Browse files
rjpadilladogi
andauthored
treehouses led random 3 lines (fixes #2046) (#2047)
Co-authored-by: dogi <dogi@users.noreply.github.com>
1 parent 9221064 commit 7825c20

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/led.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,12 +881,12 @@ function sandstorm {
881881

882882
function random {
883883
echo "selecting from: "
884-
led_help | grep "\[" | cut -d "[" -f2 | cut -d "]" -f1 | sed -n '1!p'| head -2 | sed 's/|/ /g'| sed -e 's/ random//'
884+
led_help | grep "\[" | cut -d "[" -f2 | cut -d "]" -f1 | sed -n '1!p'| head -3 | sed 's/|/ /g'| sed -e 's/ random//'
885885
rando="$(led_help | grep "\[" \
886886
| cut -d "[" -f2 \
887887
| cut -d "]" -f1 \
888888
| sed -n '1!p' \
889-
| head -2 \
889+
| head -3 \
890890
| sed 's/|/\n/g' \
891891
| sed -e 's/ random//' \
892892
| shuf -n 1)"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@treehouses/cli",
3-
"version": "1.25.9",
3+
"version": "1.25.10",
44
"remote": "4000",
55
"description": "Thin command-line interface for Raspberry Pi low level configuration.",
66
"main": "cli.sh",

0 commit comments

Comments
 (0)