From 7bbdb829552c67cd62468ffef59c29c371a8eb8f Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 20 Dec 2015 17:20:05 +0000 Subject: [PATCH] github configs now can download form another repo --- functions/fn_install_serverdir | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/functions/fn_install_serverdir b/functions/fn_install_serverdir index 0a71af518..07a7d6b38 100644 --- a/functions/fn_install_serverdir +++ b/functions/fn_install_serverdir @@ -2,7 +2,7 @@ # LGSM fn_install_serverdir function # Author: Daniel Gibbs # Website: http://gameservermanagers.com -lgsm_version="061115" +lgsm_version="201215" echo "" echo "Server Directory" @@ -13,11 +13,15 @@ echo "" if [ -d "${filesdir}" ]; then fn_printwarningnl "A server is already installed here." fi -while true; do - read -p "Continue [y/N]" yn - case $yn in - [Yy]* ) break;; - [Nn]* ) exit;; - * ) echo "Please answer yes or no.";; - esac -done \ No newline at end of file +if [ -z "${autoinstall}" ]; then + while true; do + read -p "Continue [y/N]" yn + case $yn in + [Yy]* ) break;; + [Nn]* ) exit;; + * ) echo "Please answer yes or no.";; + esac + done +fi +mkdir -v "${filesdir}" +echo "" \ No newline at end of file