From 23bfbe4f510fc888853281e76f8fc0bcc6aa81c9 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 1 Dec 2014 17:53:36 +0000 Subject: [PATCH] added fn_getquery --- functions/fn_getquery | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 functions/fn_getquery diff --git a/functions/fn_getquery b/functions/fn_getquery new file mode 100644 index 000000000..054f011a9 --- /dev/null +++ b/functions/fn_getquery @@ -0,0 +1,24 @@ +#!/bin/bash +# LGSM fn_getquery function +# Author: Daniel Gibbs +# Website: http://danielgibbs.co.uk +# Version: 011214 + +echo "GameServerQuery" +echo "============================" +if [ -z ${autoinstall} ]; then + while true; do + read -p "Do you want to install GameServerQuery? [y/N]" yn + case $yn in + [Yy]* ) echo ""; cd "${rootdir}"; wget --no-check-certificate -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py; break;; + [Nn]* ) echo ""; echo "Not installing GameServerQuery.";break;; + * ) echo "Please answer yes or no.";; + esac + done +else + echo "" + cd "${rootdir}" + wget --no-check-certificate -nv -N "http://danielgibbs.co.uk/dl/gsquery.py" + chmod +x gsquery.py +fi +echo "" \ No newline at end of file