You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve dry-run consistency and avoid unintended modifications (#762)
* refactor: apply consistent dry-run behavior and avoid unintended config changes
- Prevent real system modifications when dry-run mode is active (e.g., bootloader entries).
- Ensure 'skip' options (like grub theme) do not alter current configuration.
- Omitted 'sed' lines that unnecessarily modified out existing GRUB_THEME values.
- Unified dry-run checks across the script for consistency and predictability.
- Style: Improved readability by changing contrasts and minor settings.
Ensures the script behaves as intended during dry-run
* chore: use if instead of exit to prevent bugs
* fix: Wrong assumptions with nviida flag
---------
Co-authored-by: Khing <[email protected]>
print_log -stat"Log""View logs at ${cacheDir}/logs/${HYDE_LOG}"
313
+
print_log -b"Log"" :: " -y"View logs at ${cacheDir}/logs/${HYDE_LOG}"
304
314
if [ $flg_Install-eq 1 ] ||
305
315
[ $flg_Restore-eq 1 ] ||
306
-
[ $flg_Service-eq 1 ];then
307
-
print_log -stat "HyDE""It is recommended to reboot the system after installing or upgrading HyDE. Do you want to reboot the system now? (y/N)"
316
+
[ $flg_Service-eq 1 ] &&
317
+
[ $flg_DryRun-ne 1 ];then
318
+
print_log -stat "HyDE""It is not recommended to use newly installed or upgraded HyDE without rebooting the system. Do you want to reboot the system? (y/N)"
0 commit comments