diff --git a/CHANGELOG.md b/CHANGELOG.md index 778a2f5..8bc32fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ What's new in... 1.1.2 ----- +* Fixed incorrect total number of bundles shown for cqosgi +* Fixed missing \n for cqosgi with -m option supplied +* Fixed the issue: https://github.com/Cognifide/CQ-Unix-Toolkit/issues/17 + 1.1.1 ----- diff --git a/cqosgi b/cqosgi index 6f968b3..625ca62 100755 --- a/cqosgi +++ b/cqosgi @@ -65,7 +65,7 @@ symbolicName\":\"([^\"]+)\",\"category\":\"([^\"]*)\".*" items=$(printf "%s" "${filtered_items}" \ | ${SEDX} "s#${REGEXP}#\1${TB}\6${TB}\4${TB}\5${TB}\2#"\ | sort -nk1 -t "${TB}") - total=$(printf "%s" "${items}" | wc -l | tr -d ' ') + total=$(printf "%s\n" "${items}" | wc -l | tr -d ' ') if [ "${machine_friendly}" -eq 0 ] then printf "%s bundles\n\n" "${total}" @@ -76,7 +76,7 @@ symbolicName\":\"([^\"]+)\",\"category\":\"([^\"]*)\".*" fi if [ "${machine_friendly}" -eq 1 ] then - printf "%s" "${output}" + printf "%s\n" "${output}" else COLUMN=$(which column) if [ ${?} -ne 0 -o -z "${COLUMN}" ]