Enhance the logic for pass the args to update script

This commit is contained in:
Bishoy Ehab
2025-10-17 13:54:02 +03:00
parent 528ae04711
commit 12011fd0c8
2 changed files with 20 additions and 8 deletions
+3 -3
View File
@@ -27,14 +27,14 @@ if [[ "${EXPERIMENTAL_UPDATE_SCRIPT}" = true ]]; then
for arg in "${ORIGINAL_ARGS[@]}"; do
case "$arg" in
--exp-update|--force|-f|--clean|-c|--skip-allgreeting|--skip-alldeps|--skip-allsetups|--skip-allfiles|--skip-sysupdate|-s|--skip-hyprland|--skip-fish|--skip-miscconf|--skip-plasmaintg|--exp-files|--via-nix|--fontset)
# These are install script args, skip them
;;
-u|--update-force|-p|--packages|-n|--dry-run|-v|--verbose|--skip-notice)
UPDATE_ARGS+=("$arg")
;;
*)
UPDATE_ARGS+=("$arg")
;;
esac
done
# Execute update.sh with update-specific arguments
bash ./sdata/exp/update.sh "${UPDATE_ARGS[@]}"
exit
fi