|
@@ -33,13 +33,14 @@ function print_centered {
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
-function jumpto
|
|
|
-{
|
|
|
- label=$1
|
|
|
- cmd=$(sed -n "/$label:/{:a;n;p;ba};" $0 | grep -v ':$')
|
|
|
- eval "$cmd"
|
|
|
- exit
|
|
|
-}
|
|
|
+#function jumpto
|
|
|
+#{
|
|
|
+# label=$1
|
|
|
+# cmd=$(sed -n "/$label:/{:a;n;p;ba};" $0 | grep -v ':$')
|
|
|
+# eval "$cmd"
|
|
|
+# exit
|
|
|
+#}
|
|
|
+
|
|
|
function simplify_config {
|
|
|
error_flag=0
|
|
|
Gui=${Gui^^}
|
|
@@ -58,7 +59,6 @@ if [[ "$ChiaPos" == "YES" ]] || [[ "$ChiaPos" == "NO" ]];then error_flag=$((erro
|
|
|
if [[ "$ChiaService" == "YES" ]] || [[ "$ChiaService" == "NO" ]];then error_flag=$((error_flag+0));else error_flag=$((error_flag+1));fi
|
|
|
if [[ "$Miner" == "YES" ]] || [[ "$Miner" == "NO" ]];then error_flag=$((error_flag+0));else error_flag=$((error_flag+1));fi
|
|
|
if [[ "$ChiaProxy" == "YES" ]] || [[ "$ChiaProxy" == "NO" ]];then error_flag=$((error_flag+0));else error_flag=$((error_flag+1));fi
|
|
|
-echo $error_flag
|
|
|
}
|
|
|
|
|
|
function intro_ {
|