#!/bin/bash
#
# Run Tweet Tooter 1000
#
while true
do
  logger "$0 Start"
  /usr/bin/git pull
  rm -rf build/classes/main
  mkdir -p build/classes/main
  javac -cp lib/sikulixapi.jar -d build/classes/main src/main/java/net/pla1/tweettooter/*.java
  java -cp build/classes/main:.:lib/* net.pla1.tweettooter.Bot
  logger "$0 Finish"
done

#!/bin/bash
#
# Run Tweet Tooter 1000
#
cd ~/projects/TweetTooter1000
while true
do
  logger "$0 Start"
  /usr/bin/git pull
  rm -rf build/classes/main
  mkdir -p build/classes/main
  javac -cp lib/sikulixapi.jar -d build/classes/main src/main/java/net/pla1/tweettooter/*.java
  java -cp build/classes/main:.:lib/* net.pla1.tweettooter.Bot
  logger "$0 Finish"
done

Change directory at start of script.
Change directory at start of script.
