────────────────────────────────────
${FX_ITALIC}--help${FX_RESET} ${FX_BOLD}This help menu${FX_RESET}
- ${FX_ITALIC}-h\033${FX_RESET}
+ ${FX_ITALIC}-h${FX_RESET}
${FX_ITALIC}--no-skip-ok${FX_RESET} ${FX_BOLD}Display messages for all files checked (verbose)${FX_RESET}
${FX_ITALIC}-v${FX_RESET}
${FX_ITALIC}--skip-unsupported${FX_RESET} ${FX_BOLD}Don't display anything for files that do not have fixes available${FX_RESET}
"""
- printf "%b" "$HELPSTRING"
+ printf "%b\n" "$HELPSTRING"
}
SKIP_OK=true
" read -r name; read -r filename; read -r movable; read -r help; do
check_file "$name" "$filename" "$movable" "$help"
done <<EOF
-$(jq 'if type == "object" then .files[] as $file | .name, $file.path, $file.movable, $file.help else . end' "$XN_PROGRAMS_DIR"/* | sed -e 's/^"//' -e 's/"$//')
+$(jq '.files[] as $file | .name, $file.path, $file.movable, $file.help' "$XN_PROGRAMS_DIR"/* | sed -e 's/^"//' -e 's/"$//')
EOF
# sed is to trim quotes
}