File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env sh
22# Fetch a new dashboard image, make sure to output it to "$1".
33# For example:
4- $( dirname $0 ) /../ht -d -q -o " $1 " get https://raw.githubusercontent.com/pascalw/kindle-dash/master/example/example.png
4+ $( dirname $0 ) /../ht -d -q -o " $1 " get ${2 :- " https://raw.githubusercontent.com/pascalw/kindle-dash/master/example/example.png" }
Original file line number Diff line number Diff line change 11DIR=" $( dirname $0 ) "
22DASH_PNG=" $DIR /dash.png"
3+ FETCH_DASHBOARD_CMD=" $DIR /local/fetch-dashboard.sh"
34
45echo " Refreshing dashboard"
56" $DIR /wait-for-wifi.sh"
67
7- $( dirname $0 ) /ht -d -q -o " $DASH_PNG " get $1
8+ " $FETCH_DASHBOARD_CMD " " $DASH_PNG " $1
89
910echo " Full screen refresh"
1011/usr/sbin/eips -f -g " $DASH_PNG "
You can’t perform that action at this time.
0 commit comments