Skip to content

Commit 2af41a1

Browse files
committed
Added conditional checks to skip dependency verification in the setup script for Windows and dry-run modes, while ensuring AUR helper checks are still performed. Enhanced logging for clarity on skipped operations.
1 parent ab5de59 commit 2af41a1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

setup.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,19 @@ check_disk_space() {
674674
}
675675

676676
check_dependencies() {
677+
# Skip dependency checks on Windows or in dry-run mode
678+
if is_windows || is_dry_run; then
679+
if is_windows; then
680+
print_message "Running on Windows - skipping dependency checks"
681+
else
682+
log_dry_run_operation "check_dependencies" "Would check and install missing dependencies"
683+
print_message "Dry-run: skipping dependency checks"
684+
fi
685+
# Still check for AUR helper (which will skip on Windows)
686+
check_yay
687+
return 0
688+
fi
689+
677690
local deps_cmds=("git" "sudo" "debugedit")
678691
local missing_cmds=()
679692

0 commit comments

Comments
 (0)