Skip to content

Commit

Permalink
ustb-cli: Disable stderr
Browse files Browse the repository at this point in the history
avoiding alerts of Raspberry Pi
  • Loading branch information
Jason23347 committed Oct 12, 2020
1 parent a4dac86 commit 78a8187
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ustb-cli
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPTNAME=${0##*/}
VERSION=v1.1
VERSION=v1.2

LOGIN_HOST=202.204.48.82
ALWAYS_ATTEMPT_IPV6=1
Expand Down Expand Up @@ -298,7 +298,7 @@ _ustb_draw_clock() {
padding_y=$((($tty_height - $min_height) / 2))

[ $padding_x -lt 0 ] || [ $padding_y -lt 0 ] && {
echo "Error: Minimum tty size ${min_height}x${min_width} required" >&2
echo "Error: Minimum tty size ${min_height}x${min_width} required."
return 1
}

Expand Down Expand Up @@ -707,14 +707,14 @@ _ustb_draw_digit_9() {

# handle exit
trap _ustb_bye 0
exec 2>&0

# Run in cli mode if no arguments,
# Run in cli mode if no arguments
[ $# -lt 1 ] && {
while read -ep "ustb> " line; do
_ustb_command $line
done
} || {
# or excute single command
} || { # or excute single command
_ustb_command $*
exit $?
}

0 comments on commit 78a8187

Please sign in to comment.