We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c15a60 commit 77aae0aCopy full SHA for 77aae0a
2 files changed
src/local/fetch-dashboard.sh
@@ -1,4 +1,4 @@
1
#!/usr/bin/env sh
2
# Fetch a new dashboard image, make sure to output it to "$1".
3
# For example:
4
-$(dirname $0)/../ht -d -q -o "$1" get https://raw.githubusercontent.com/pascalw/kindle-dash/master/example/example.png
+$(dirname $0)/../ht -d -q -o "$1" get ${2:-"https://raw.githubusercontent.com/pascalw/kindle-dash/master/example/example.png"}
src/test.sh
@@ -1,10 +1,11 @@
DIR="$(dirname $0)"
DASH_PNG="$DIR/dash.png"
+FETCH_DASHBOARD_CMD="$DIR/local/fetch-dashboard.sh"
5
echo "Refreshing dashboard"
6
"$DIR/wait-for-wifi.sh"
7
-$(dirname $0)/ht -d -q -o "$DASH_PNG" get $1
8
+"$FETCH_DASHBOARD_CMD" "$DASH_PNG" $1
9
10
echo "Full screen refresh"
11
/usr/sbin/eips -f -g "$DASH_PNG"
0 commit comments