diff --git a/script/show_solutions b/script/show_solutions index 66c128eda1c4533defd5fb09803461405f5fe4b9..e1d088f3d07fc12b4b13db305f4924a2cfd698cf 100755 --- a/script/show_solutions +++ b/script/show_solutions @@ -13,12 +13,18 @@ function possible_solutions { echo "$sol $com" sol=`expr $sol + 1` done + sol_sk=$sol + echo "$sol continue" + sol=`expr $sol + 1` echo "$sol exit the script" echo -e "\033[1;34;5mChoose the solution:\033[0m" read choose if [ x"$choose" = x"$sol" ]; then exit 1 fi + if [ x"$choose" = x"$sol_sk" ]; then + return + fi possible_solutions_ret=`expr $choose - 1` echo "Executing: ${command[$possible_solutions_ret]}" if [ -a input_install ]; then