Skip to content

Commit c730a16

Browse files
committed
Added confirmation question
1 parent 265847b commit c730a16

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/itkdev-docker-compose

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ function template_install {
6868
fi
6969
fi
7070

71+
read -p "Are you sure you want to install the $name template in $target_dir (y|N)? " -n 1 -r
72+
echo
73+
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
74+
exit
75+
fi
76+
7177
echo "${bold}Installing $name template${normal}"
7278
rsync --archive $source_dir $target_dir
7379

0 commit comments

Comments
 (0)