Skip to content

Commit 223c717

Browse files
committed
Only install trash on macos
1 parent 000c11e commit 223c717

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Lint Code
1+
name: Check Lint
22

33
on:
44
push:

Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@ setup:
1919
@echo "Checking for git-lfs..."
2020
@which git-lfs > /dev/null || (echo "Installing git-lfs..." && brew install git-lfs)
2121
@echo "git-lfs is installed."
22-
@echo "Checking for trash..."
23-
@which trash > /dev/null || (echo "Installing trash..." && brew install trash)
24-
@echo "trash is installed."
22+
@if [ "$$(uname)" = "Darwin" ]; then \
23+
which trash > /dev/null || (echo "Installing trash..." && brew install trash); \
24+
echo "trash is installed."; \
25+
else \
26+
echo "Skipping trash installation (not macOS)."; \
27+
fi
2528
@echo "Checking for swift-format..."
2629
@which swift-format > /dev/null || (echo "Installing swift-format..." && brew install swift-format)
2730
@echo "swift-format is installed."

0 commit comments

Comments
 (0)