mirror of
https://github.com/twisterarmy/gentoo-twister-overlay.git
synced 2025-03-12 13:31:03 +00:00
28 lines
398 B
Bash
Executable File
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 $?
|