Skip to content

Commit a2eb047

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 a2eb047

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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; \

0 commit comments

Comments
 (0)