Unverified Commit 5806f915 authored by mrclksr's avatar mrclksr Committed by GitHub
Browse files

Remove get_version() which is in "common"

parent d719938c
Showing with 0 additions and 18 deletions
+0 -18
...@@ -506,24 +506,6 @@ createtmpimage() ...@@ -506,24 +506,6 @@ createtmpimage()
mdconfig -d -u ${mddev} mdconfig -d -u ${mddev}
} }
#
# Returns the shortened, current git commit ID, or the tag if given.
#
get_version()
{
git log --oneline --decorate=full | head -1 | awk -F'[ \t()]+' '{
ID=$1;
for (i = 1; i <= NF; i++) {
if ($i ~ /tags/) {
n = split($i, a, "/")
print a[n];
exit(0);
}
}
print ID;
}'
}
createimage() createimage()
{ {
local tmpimgdev used pn MNT local tmpimgdev used pn MNT
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment