Add some extra gruntwork to ./install
This commit is contained in:
parent
90c018165f
commit
060ba35764
4
install
4
install
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user