Warn message

This commit is contained in:
reakjra
2025-11-18 15:45:37 +01:00
parent 781404749e
commit d8921a6608
2 changed files with 14 additions and 1 deletions
+13
View File
@@ -288,6 +288,19 @@ update_hypr_config() {
log_header "Experimental Config Merge"
if [[ "$SKIP_NOTICE" == false ]]; then
log_warning "THIS SCRIPT IS EXPERIMENTAL, ONLY CONTINUE AT YOUR OWN RISK!"
log_warning "It might be safer if you want to preserve your modifications and not delete added files,"
log_warning " but this can cause partial updates and therefore unexpected behavior."
log_warning "In general, prefer \"./setup install\" for updates if available."
safe_read "Continue? (y/N): " response "N"
if [[ ! "$response" =~ ^[Yy]$ ]]; then
log_error "Merge aborted by user"
exit 1
fi
fi
check_preconditions
fetch_upstream
+1 -1
View File
@@ -49,7 +49,7 @@ case $1 in
# Global help
""|help|--help|-h)showhelp_global;exit;;
# Correct subcommand
install|exp-uninstall|exp-update|exp-update-old|exp-merge|resetfirstrun|checkdeps|virtmon)
install|uninstall|exp-update|exp-update-old|exp-merge|resetfirstrun|checkdeps|virtmon)
SUBCMD_NAME=$1
SUBCMD_DIR=./sdata/subcmd-$1
shift;;