You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
398 B
27 lines
398 B
#! /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 $?
|
|
|