From 2fb55277ceb270d2bc7b1b14da3fb214063e2235 Mon Sep 17 00:00:00 2001 From: Botspot Date: Fri, 2 Oct 2020 07:41:48 -0500 Subject: [PATCH] fix 'unknown step' error --- createapp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/createapp b/createapp index a850bcf..1c07462 100755 --- a/createapp +++ b/createapp @@ -7,9 +7,13 @@ function error { } #start on this step: -#step=6 +#step=1 #name=myapp +if [ -z "$step" ];then + step=1 +fi + while true;do case $step in 1) @@ -27,7 +31,7 @@ With a few simple steps, your project can take advantage of Pi-Apps"\'" features fi output="$(yad --form \ --title="Create App: Step $step" --window-icon="${DIRECTORY}/icons/logo.png" --center --width=310 --height=300 \ - --text="Step ${step}: enter some information. Only name field is mandatory." \ + --text="Step ${step}: enter some information. The name field is mandatory." \ --field="Name of app:$([ ! -z "$namelocked" ]&&echo ':RO')" "$name" \ --field="Website:" "$(cat "${DIRECTORY}/apps/${name}/website")" \ --field="Icon:":FL --file-filter "Graphics Files | *.png *.svg *.jpg *.jpeg" "$icon" \