From 060ba35764992b5f60524f47ddf8b028908ba7f4 Mon Sep 17 00:00:00 2001 From: Michael De Roover Date: Fri, 26 Mar 2021 21:57:06 +0100 Subject: [PATCH] Add some extra gruntwork to ./install --- install | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install b/install index ef9f776..953b3d2 100755 --- a/install +++ b/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