Skip to content

Commit bbb5d8c

Browse files
alexeicolingalak
authored andcommitted
scripts/template_dir: don't prompt for cmake when -y set
1 parent a2aff08 commit bbb5d8c

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

scripts/template_dir

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -163,15 +163,7 @@ do_cmake_package()
163163
return
164164
fi
165165

166-
echo "Do you want to register the Zephyr-sdk at location: $target_sdk_dir"
167-
echo " in the CMake package registry (y/n)?"
168-
169-
while read confirm; do
170-
[ "$confirm" = "Y" -o "$confirm" = "y" -o "$confirm" = "n" \
171-
-o "$confirm" = "N" ] && break
172-
echo "Invalid input \"$confirm\", please input 'y' or 'n': "
173-
done
174-
166+
read_confirm "registering Zephyr-sdk CMake module with path $target_sdk_dir "
175167
if [ "$confirm" = "y" -o "$confirm" = "Y" ]; then
176168
if [ ! -d $ZEPHYR_SDK_REGISTRY_DIR ]; then
177169
mkdir -p $ZEPHYR_SDK_REGISTRY_DIR

0 commit comments

Comments
 (0)