Add some extra gruntwork to ./install

This commit is contained in:
Michael De Roover 2021-03-26 21:57:06 +01:00
parent 90c018165f
commit 060ba35764
Signed by: vim
GPG Key ID: 075496E232CE04CB

View File

@ -10,8 +10,12 @@ mkconfig(){
}
# Preliminary sanity checks
[ $(id -u) = 0 ] && echo "Please do not run as root." && exit 1
[ ! -f ubot.py ] && echo "ubot.py not found, quitting." && exit 1
[ $0 != ./install ] && echo "Not launched from current directory." && exit 1
[ ! -f config.py ] && mkconfig
git pull
pip3 install -U telethon --user
return 0