From 1d243dfa8c9624eb8a4d53b049411434b3615764 Mon Sep 17 00:00:00 2001 From: Yago Date: Tue, 7 Apr 2015 00:18:43 +0200 Subject: [PATCH] Update launch.sh --- launch.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/launch.sh b/launch.sh index 7b6fe0b..bc91e02 100755 --- a/launch.sh +++ b/launch.sh @@ -60,13 +60,13 @@ if [ "$1" = "install" ]; then elif [ "$1" = "update" ]; then update else - if [ ! -f ./tg/telegram.h ]; then + if [ ! -f $THIS_DIR/tg/telegram.h ]; then echo "tg not found" echo "Run $0 install" exit 1 fi - if [ ! -f ./tg/bin/telegram-cli ]; then + if [ ! -f $THIS_DIR/tg/bin/telegram-cli ]; then echo "tg binary not found" echo "Run $0 install" exit 1 @@ -75,5 +75,5 @@ else PREFIX="$THIS_DIR/.luarocks" export LUA_CPATH=";;${PREFIX}/lib/lua/5.2/?.so" export LUA_PATH=";;${PREFIX}/share/lua/5.2/?.lua;${PREFIX}/share/lua/5.2/?/init.lua" - ./tg/bin/telegram-cli -k tg/tg-server.pub -s ./bot/bot.lua -l 1 -fi \ No newline at end of file + $THIS_DIR/tg/bin/telegram-cli -k $THIS_DIR/tg/tg-server.pub -s $THIS_DIR/bot/bot.lua -l 1 +fi