2014-09-23 17:55:02 +02:00

28 lines
398 B
Bash
Executable File

#! /bin/sh
if [[ ${EUID} -eq 0 ]]
then
echo "Don't run this as root!"
exit 1
fi
twisterHtmlFolder=${HOME}/.twister/html
if ! test -d ${twisterHtmlFolder}
then
echo ""
echo "\"${twisterHtmlFolder}\" does not exists."
echo "If you haven't done so already,"
echo "please run twister-html-install."
exit 1
fi
cd ${twisterHtmlFolder}
echo "Updating HTML files..."
echo ""
git pull
exit $?