Add warining for users [the script is not fully tested]

This commit is contained in:
Bishoy Ehab
2025-06-08 07:47:14 +03:00
parent 181ac0561d
commit d96abe7a4d
+8
View File
@@ -489,6 +489,14 @@ has_new_commits() {
# Main script starts here
log_header "Dotfiles Update Script"
log_warning "THIS SCRIPT IS NOT FULLY TESTED AND MAY CAUSE ISSUES!"
safe_read "BY CONTINUE YOU WILL USE IT AT YOUR OWN RISK (y/N): " response "N"
if [[ ! "$response" =~ ^[Yy]$ ]]; then
log_error "Update aborted by user"
exit 1
fi
# Parse command line arguments
while [[ $# -gt 0 ]]; do
case $1 in