2014-06-20 14:41:18 -04:00
|
|
|
#!/bin/sh
|
|
|
|
PRG="$0"
|
2014-03-26 03:06:39 -04:00
|
|
|
|
2014-06-20 14:41:18 -04:00
|
|
|
# resolve relative symlinks
|
|
|
|
while [ -h "$PRG" ] ; do
|
|
|
|
ls=`ls -ld "$PRG"`
|
|
|
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
|
|
if expr "$link" : '/.*' > /dev/null; then
|
|
|
|
PRG="$link"
|
|
|
|
else
|
|
|
|
PRG="`dirname "$PRG"`/$link"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
# make it fully qualified
|
|
|
|
WORKING_DIR=`pwd`
|
|
|
|
PRG_DIR=`dirname "$PRG"`
|
|
|
|
APP_ROOT=`cd "$PRG_DIR" && pwd`
|
|
|
|
|
|
|
|
# restore original working dir
|
|
|
|
cd "$WORKING_DIR"
|
|
|
|
|
|
|
|
|
|
|
|
JAR_FILE="$APP_ROOT/FileBot.jar"
|
2014-03-26 03:15:23 -04:00
|
|
|
echo "Update $JAR_FILE"
|
2014-07-13 11:03:28 -04:00
|
|
|
curl -L -o "$JAR_FILE" -z "$JAR_FILE" "https://downloads.sourceforge.net/project/filebot/filebot/HEAD/FileBot.jar"
|