From 438276013139710bb73586048af20afc0e37ec32 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 2 Dec 2014 09:53:36 +0000 Subject: [PATCH] Added fn_retryinstakk --- functions/fn_retryinstall | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 functions/fn_retryinstall diff --git a/functions/fn_retryinstall b/functions/fn_retryinstall new file mode 100644 index 000000000..5eb78f55d --- /dev/null +++ b/functions/fn_retryinstall @@ -0,0 +1,14 @@ +#!/bin/bash +# LGSM fn_retryinstall function +# Author: Daniel Gibbs +# Website: http://danielgibbs.co.uk +# Version: 011214 + +while true; do + read -p "Retry install? [y/N]" yn + case $yn in + [Yy]* ) fn_install; exit;; + [Nn]* ) echo Exiting; exit;; + * ) echo "Please answer yes or no.";; + esac +done \ No newline at end of file