This repository was archived by the owner on May 17, 2019. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -166,18 +166,27 @@ then
166166
167167 clear
168168
169- read -p " Enter Default Directory for Shell(Default: '${DEFAULT_LOCATION} ): " location
170-
171- if [[ -z $location ]]
172- then
173- location=" ${DEFAULT_LOCATION} "
174- else
175- sed -i " s|${DEFAULT_LOCATION} |${location} |g" run.sh
176- sed -i " s|${DEFAULT_LOCATION} |${location} |g" Src/globals.h
177- sed -i " s|${DEFAULT_LOCATION} |${location} |g" Src/global_bash_var
178- sed -i " s|${DEFAULT_LOCATION} |${location} |g" Bin/nano
179- fi
180-
169+ while true
170+ do
171+ read -p " Enter Default Directory for Shell(Default: '${DEFAULT_LOCATION} ): " location
172+ if [[ -z $location ]]
173+ then
174+ location=" ${DEFAULT_LOCATION} "
175+ break
176+ else
177+ read -p " Is this correct: ${location} -- (y/n): " option1
178+ if [[ " $option1 " == " y" || " $option1 " == " yes" ]]
179+ then
180+ sed -i " s|${DEFAULT_LOCATION} |${location} |g" run.sh
181+ sed -i " s|${DEFAULT_LOCATION} |${location} |g" Src/globals.h
182+ sed -i " s|${DEFAULT_LOCATION} |${location} |g" Src/global_bash_var
183+ sed -i " s|${DEFAULT_LOCATION} |${location} |g" Bin/nano
184+ break
185+ else
186+ continue
187+ fi
188+ fi
189+ done
181190 # Prompt user to allow what commands
182191 echo -e " Please choose what commands to allow your users to use below: \n"
183192
You can’t perform that action at this time.
0 commit comments