From 7825c2061246ac16d9ad9f91bc2731dde62b2895 Mon Sep 17 00:00:00 2001 From: RJ Padilla Date: Fri, 26 Feb 2021 23:37:26 -0500 Subject: [PATCH] `treehouses led random` 3 lines (fixes #2046) (#2047) Co-authored-by: dogi --- modules/led.sh | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/led.sh b/modules/led.sh index 62c137c22..e95cc938d 100644 --- a/modules/led.sh +++ b/modules/led.sh @@ -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)" diff --git a/package.json b/package.json index 1724e072a..be4a1a93a 100644 --- a/package.json +++ b/package.json @@ -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",