From: PHO Date: Thu, 23 Feb 2012 14:14:06 +0000 (+0900) Subject: say_hello: plural form X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=build-hc-pkg.git;a=commitdiff_plain;h=4c65f64e3dbe6b9b0fc1d29060cd71fba3b9717b say_hello: plural form --- 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 () {