Commit a6172c12 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm pack generic-snap.sh: drop v from version

parent 5ba1a117
......@@ -26,6 +26,11 @@ eval $(epm tool yaml squashfs-root/meta/snap.yaml | grep -E "^(name|version|summ
[ -n "$name" ] || fatal "Can't get name from snap.yaml"
[ -n "$version" ] || fatal "Can't get version from snap.yaml"
# hack version
if echo "$version" | grep -q "^v[0-9]" ; then
version="$(echo $version | sed -e 's|^v||')"
fi
mkdir -p opt/
mv squashfs-root opt/$name
......
Markdown is supported
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