Fix installer confirmation to accept 'y' in addition to 'yes'
Changed confirmation check from exact 'yes' match to regex pattern that accepts: - y, Y - yes, Yes, YES - Any case variation This prevents user frustration when typing 'y' instead of full 'yes'. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -215,7 +215,7 @@ echo ""
|
|||||||
echo -n "Proceed with installation? (yes/no): "
|
echo -n "Proceed with installation? (yes/no): "
|
||||||
read -r confirm
|
read -r confirm
|
||||||
|
|
||||||
if [ "$confirm" != "yes" ]; then
|
if [[ ! "$confirm" =~ ^[Yy]([Ee][Ss])?$ ]]; then
|
||||||
echo ""
|
echo ""
|
||||||
print_error "Installation cancelled"
|
print_error "Installation cancelled"
|
||||||
press_enter
|
press_enter
|
||||||
|
|||||||
Reference in New Issue
Block a user