From 8be5077586923f20c7687326a48b7bc742679664 Mon Sep 17 00:00:00 2001 From: Botspot Date: Fri, 14 May 2021 16:10:26 -0500 Subject: [PATCH] createapp: move source command earlier --- createapp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/createapp b/createapp index a09fc96..ef49bef 100755 --- a/createapp +++ b/createapp @@ -6,6 +6,9 @@ function error { exit 1 } +#for text_editor() and script_name() functions +source "${DIRECTORY}/api" || error "failed to source ${DIRECTORY}/api" + #you can specify a preexisting app with variable 1 if [ ! -z "$1" ];then name="$1" @@ -24,9 +27,6 @@ windowheight=400 #start with this app name: #name='Email Checker' -#for text_editor() and script_name() functions -source "${DIRECTORY}/api" - while true;do case $step in 1) #STEP 1: introduction