From d96abe7a4d6cf7de8389a116278241de261ec938 Mon Sep 17 00:00:00 2001 From: Bishoy Ehab Date: Sun, 8 Jun 2025 07:47:14 +0300 Subject: [PATCH] Add warining for users [the script is not fully tested] --- update.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/update.sh b/update.sh index 78202a833..8c54bb821 100755 --- a/update.sh +++ b/update.sh @@ -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