Skip to content

Commit 69bc6b0

Browse files
committed
Fix bash substitution syntax in status command
- Replace with portable cut command - Ensures compatibility across different shell environments - Status command now works correctly on all systems
1 parent bf067f3 commit 69bc6b0

35 files changed

+35
-13
lines changed

β€ŽMakefileβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ status:
7575
echo " πŸ“‹ Cache file exists"; \
7676
cached_yaml=$$(sed -n '1p' ".cache/$$course" 2>/dev/null || echo "missing"); \
7777
cached_remote=$$(sed -n '2p' ".cache/$$course" 2>/dev/null || echo "missing"); \
78-
echo " πŸ’Ύ Cached YAML: $${cached_yaml:0:8}..."; \
79-
echo " πŸ’Ύ Cached remote: $${cached_remote:0:8}..."; \
78+
echo " πŸ’Ύ Cached YAML: $$(echo $$cached_yaml | cut -c1-8)..."; \
79+
echo " πŸ’Ύ Cached remote: $$(echo $$cached_remote | cut -c1-8)..."; \
8080
else \
8181
echo " βšͺ No cache file"; \
8282
fi; \
-178 KB
Binary file not shown.
-1 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
131 KB
Binary file not shown.
0 Bytes
Binary file not shown.
143 KB
Binary file not shown.
283 KB
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
Β (0)