Skip to content

Commit e35cfab

Browse files
committed
fix: step-8 last xargs instance → pure-bash whitespace strip
wc -c output piped through xargs interpreted backslashes in edge-case byte counts; use parameter expansion instead (matches step-6/7 pattern).
1 parent 16d477b commit e35cfab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

step-8/step-8-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ run_self_test() {
244244

245245
# Test 3: Skill file is non-empty
246246
if [ -s "$SKILL_FILE" ]; then
247-
SKILL_SIZE=$(wc -c < "$SKILL_FILE" | xargs)
247+
SKILL_SIZE=$(wc -c < "$SKILL_FILE"); SKILL_SIZE="${SKILL_SIZE//[[:space:]]/}"
248248
success "TEST: SKILL.md is non-empty ($SKILL_SIZE bytes)"
249249
TEST_PASS=$((TEST_PASS + 1))
250250
else

0 commit comments

Comments
 (0)