summaryrefslogtreecommitdiffstats
path: root/scripts/kernel
diff options
context:
space:
mode:
authorAndreas Bießmann <andreas@biessmann.de>2011-12-16 19:18:27 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2012-01-04 11:02:07 +0100
commit7368e3e3a8218f4b5bb00a5e58cc9efb7fcfe797 (patch)
tree8b11ca037ec510f45f9e0f4326793f1450d2ea32 /scripts/kernel
parentc633ec60ca6505bb2c1d4c8156e2e3d83f2220ac (diff)
downloadptxdist-7368e3e3a8218f4b5bb00a5e58cc9efb7fcfe797.tar.gz
ptxdist-7368e3e3a8218f4b5bb00a5e58cc9efb7fcfe797.tar.xz
setlocalversion: replace echo -n with printf
On some systems the 'echo -n "$v"' lead to corrupted $PTXDIST_VERSION_FULL cause the builtin echo is used which does not know about -n switch. Instead of just removing the -n switch use printf as the rest of this script do. Before this patch my version looks like this: ---8<--- $ ptxdist --version -n 2011.12.0-00047-g9849e20 --->8--- Signed-off-by: Andreas Bießmann <andreas@biessmann.de> cc: Michael Olbrich <m.olbrich@pengutronix.de> cc: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/kernel')
-rwxr-xr-xscripts/kernel/setlocalversion2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kernel/setlocalversion b/scripts/kernel/setlocalversion
index 3e14135a2..0ece32147 100755
--- a/scripts/kernel/setlocalversion
+++ b/scripts/kernel/setlocalversion
@@ -39,7 +39,7 @@ then
test -z "$v" \
&& echo "$0: WARNING: $tarball_version_file seems to be damaged" 1>&2
- echo -n "$v"
+ printf '%s' $v
exit
fi