summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew McDermott <andrew.mcdermott@linaro.org>2013-10-29 07:21:31 -0700
committerAndrew McDermott <andrew.mcdermott@linaro.org>2013-10-29 07:21:31 -0700
commit979127c135c9bc4d0fb140a3b068427d312626c4 (patch)
tree022b725ddeb94f68f5531fc6583f418921229abf
parentf8828825da68b84341d9b578440a828c7fc1e3ba (diff)
print-commit-ids: use -n1 for printing first line
Signed-off-by: Andrew McDermott <andrew.mcdermott@linaro.org>
-rwxr-xr-xprint-commit-ids3
1 files changed, 1 insertions, 2 deletions
diff --git a/print-commit-ids b/print-commit-ids
index c53cfed..53e3005 100755
--- a/print-commit-ids
+++ b/print-commit-ids
@@ -1,6 +1,5 @@
#!/bin/sh
for i in "$@"; do
- tar atf $i | head -1 | sed 's!/.*!!'
+ tar atf $i | head -n 1 | sed 's!/.*!!'
done
-