Skip to content

Commit 091862e

Browse files
committed
fix install script on sh
1 parent 4c8e417 commit 091862e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/templates/install.sh.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ echo ""
1919
echo "Total files: {{ files|length }}"
2020
echo ""
2121
if [ -t 0 ]; then
22-
read -p "Do you want to proceed? (Y/n): " -n 1 -r
23-
echo ""
24-
if [[ ! $REPLY =~ ^[Yy]$ ]] && [[ ! -z $REPLY ]]; then
22+
printf "Do you want to proceed? (Y/n): "
23+
read REPLY
24+
if [ "$REPLY" != "Y" ] && [ "$REPLY" != "y" ] && [ -n "$REPLY" ]; then
2525
echo "Installation cancelled."
2626
exit 1
2727
fi

0 commit comments

Comments
 (0)