From 4c65f64e3dbe6b9b0fc1d29060cd71fba3b9717b Mon Sep 17 00:00:00 2001 From: PHO Date: Thu, 23 Feb 2012 23:14:06 +0900 Subject: [PATCH] say_hello: plural form --- build-hc-pkg | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build-hc-pkg b/build-hc-pkg index e0e55f5..07f1cd2 100755 --- a/build-hc-pkg +++ b/build-hc-pkg @@ -34,7 +34,12 @@ function say_hello () { local -r platform=$(detect_platform_type) local -r n_cpus=$(detect_number_of_cpus) - echo "This is build-hc-pkg, running on $platform with $n_cpus processors." + echo -n "This is build-hc-pkg, running on $platform with $n_cpus " + if (( $n_cpus == 1 )); then + echo "processor." + else + echo "processors." + fi } function srcpath () { -- 2.40.0