diff --git a/get-shit-done/references/decimal-phase-calculation.md b/get-shit-done/references/decimal-phase-calculation.md index b8da32114..dd1b57230 100644 --- a/get-shit-done/references/decimal-phase-calculation.md +++ b/get-shit-done/references/decimal-phase-calculation.md @@ -33,8 +33,8 @@ With existing decimals: ```bash DECIMAL_INFO=$(node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" phase next-decimal "${AFTER_PHASE}") -DECIMAL_PHASE=$(echo "$DECIMAL_INFO" | jq -r '.next') -BASE_PHASE=$(echo "$DECIMAL_INFO" | jq -r '.base_phase') +DECIMAL_PHASE=$(printf '%s\n' "$DECIMAL_INFO" | jq -r '.next') +BASE_PHASE=$(printf '%s\n' "$DECIMAL_INFO" | jq -r '.base_phase') ``` Or with --raw flag: diff --git a/get-shit-done/references/phase-argument-parsing.md b/get-shit-done/references/phase-argument-parsing.md index 6ae9c508a..ee483fcf3 100644 --- a/get-shit-done/references/phase-argument-parsing.md +++ b/get-shit-done/references/phase-argument-parsing.md @@ -46,7 +46,7 @@ Use `roadmap get-phase` to validate phase exists: ```bash PHASE_CHECK=$(node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" roadmap get-phase "${PHASE}") -if [ "$(echo "$PHASE_CHECK" | jq -r '.found')" = "false" ]; then +if [ "$(printf '%s\n' "$PHASE_CHECK" | jq -r '.found')" = "false" ]; then echo "ERROR: Phase ${PHASE} not found in roadmap" exit 1 fi diff --git a/get-shit-done/workflows/plan-milestone-gaps.md b/get-shit-done/workflows/plan-milestone-gaps.md index 373147bd2..7fa760866 100644 --- a/get-shit-done/workflows/plan-milestone-gaps.md +++ b/get-shit-done/workflows/plan-milestone-gaps.md @@ -66,7 +66,7 @@ Find highest existing phase: ```bash # Get sorted phase list, extract last one PHASES=$(node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" phases list) -HIGHEST=$(echo "$PHASES" | jq -r '.directories[-1]') +HIGHEST=$(printf '%s\n' "$PHASES" | jq -r '.directories[-1]') ``` New phases continue from there: diff --git a/get-shit-done/workflows/plan-phase.md b/get-shit-done/workflows/plan-phase.md index 7bf31efba..274a3a8c5 100644 --- a/get-shit-done/workflows/plan-phase.md +++ b/get-shit-done/workflows/plan-phase.md @@ -257,13 +257,13 @@ ls "${PHASE_DIR}"/*-PLAN.md 2>/dev/null Extract from INIT JSON: ```bash -STATE_PATH=$(echo "$INIT" | jq -r '.state_path // empty') -ROADMAP_PATH=$(echo "$INIT" | jq -r '.roadmap_path // empty') -REQUIREMENTS_PATH=$(echo "$INIT" | jq -r '.requirements_path // empty') -RESEARCH_PATH=$(echo "$INIT" | jq -r '.research_path // empty') -VERIFICATION_PATH=$(echo "$INIT" | jq -r '.verification_path // empty') -UAT_PATH=$(echo "$INIT" | jq -r '.uat_path // empty') -CONTEXT_PATH=$(echo "$INIT" | jq -r '.context_path // empty') +STATE_PATH=$(printf '%s\n' "$INIT" | jq -r '.state_path // empty') +ROADMAP_PATH=$(printf '%s\n' "$INIT" | jq -r '.roadmap_path // empty') +REQUIREMENTS_PATH=$(printf '%s\n' "$INIT" | jq -r '.requirements_path // empty') +RESEARCH_PATH=$(printf '%s\n' "$INIT" | jq -r '.research_path // empty') +VERIFICATION_PATH=$(printf '%s\n' "$INIT" | jq -r '.verification_path // empty') +UAT_PATH=$(printf '%s\n' "$INIT" | jq -r '.uat_path // empty') +CONTEXT_PATH=$(printf '%s\n' "$INIT" | jq -r '.context_path // empty') ``` ## 8. Spawn gsd-planner Agent