Use installed t if available
This commit is contained in:
parent
c080bd1ecc
commit
d80ca4a6ee
1 changed files with 8 additions and 3 deletions
|
|
@ -1,18 +1,23 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
WEBSITE_DIR=${WEBSITE_DIR:-output}
|
WEBSITE_DIR=${WEBSITE_DIR:-output}
|
||||||
|
if [[ -f "/usr/local/bundle/bin/t" ]] ; then
|
||||||
|
T=/usr/local/bundle/bin/t
|
||||||
|
else
|
||||||
|
T="bundle exec t"
|
||||||
|
fi
|
||||||
TOOT=${TOOT:-/usr/local/bin/toot}
|
TOOT=${TOOT:-/usr/local/bin/toot}
|
||||||
|
|
||||||
cd `dirname $0`/..
|
cd `dirname $0`/..
|
||||||
|
|
||||||
cat "$WEBSITE_DIR/cccs.ical" | scripts/tweet-reminders.rb 0 "Heute:" | while read LINE ; do
|
cat "$WEBSITE_DIR/cccs.ical" | scripts/tweet-reminders.rb 0 "Heute:" | while read LINE ; do
|
||||||
bundle exec t update "$LINE"
|
$T update "$LINE"
|
||||||
done
|
done
|
||||||
cat "$WEBSITE_DIR/cccs.ical" | scripts/tweet-reminders.rb 1 "Morgen:" | while read LINE ; do
|
cat "$WEBSITE_DIR/cccs.ical" | scripts/tweet-reminders.rb 1 "Morgen:" | while read LINE ; do
|
||||||
bundle exec t update "$LINE"
|
$T update "$LINE"
|
||||||
done
|
done
|
||||||
cat "$WEBSITE_DIR/cccs.ical" | scripts/tweet-reminders.rb 7 "In einer Woche:" | while read LINE ; do
|
cat "$WEBSITE_DIR/cccs.ical" | scripts/tweet-reminders.rb 7 "In einer Woche:" | while read LINE ; do
|
||||||
bundle exec t update "$LINE"
|
$T update "$LINE"
|
||||||
done
|
done
|
||||||
|
|
||||||
cat "$WEBSITE_DIR/cccs.ical" | scripts/tweet-reminders.rb 0 "Heute:" 500 | while read LINE ; do
|
cat "$WEBSITE_DIR/cccs.ical" | scripts/tweet-reminders.rb 0 "Heute:" 500 | while read LINE ; do
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue