]> gitweb @ CieloNegro.org - build-hc-pkg.git/commitdiff
say_hello: cosmetic changes
authorPHO <pho@cielonegro.org>
Thu, 23 Feb 2012 14:18:57 +0000 (23:18 +0900)
committerPHO <pho@cielonegro.org>
Thu, 23 Feb 2012 14:18:57 +0000 (23:18 +0900)
build-hc-pkg

index c70fb5db8a3698057f8d132e1bb254a577db4b32..48e674ba2d22c038d93f6d6e2368eaf2bf6f54e3 100755 (executable)
@@ -31,10 +31,11 @@ function detect_gnu_tar () {
 }
 
 function say_hello () {
+    local -r self=$(basename "$0")
     local -r platform=$(detect_platform_type)
     local -r n_cpus=$(detect_number_of_cpus)
 
-    echo -n "This is "$(basename "$0")", running on $platform with $n_cpus "
+    echo -n "This is $self, running on $platform with $n_cpus "
     if (( $n_cpus == 1 )); then
         echo "processor."
     else