btrfs-progs: version.sh: simplify printing the version
authorDavid Sterba <dsterba@suse.cz>
Fri, 13 Feb 2015 13:49:31 +0000 (14:49 +0100)
committerDavid Sterba <dsterba@suse.cz>
Fri, 13 Feb 2015 13:49:31 +0000 (14:49 +0100)
Signed-off-by: David Sterba <dsterba@suse.cz>
version.sh

index c160088..c656f7d 100755 (executable)
@@ -28,7 +28,7 @@ fi
 
 if [ "$opt" = "--configure" ]; then
        # Omit the trailing newline, so that m4_esyscmd can use the result directly.
-       echo "$v" | tr -d '\n'
+       echo -n "$v"
 else
        echo "$v"
 fi