Commit 86201764 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play telemt: simplify binary extraction with --here

parent 5a38eae5
......@@ -8,7 +8,7 @@ VERSION="$3"
mkdir -p opt/$PRODUCT
erc --here unpack "$TAR" || fatal
cp "$(erc basename "$TAR")/$PRODUCT" opt/$PRODUCT/$PRODUCT 2>/dev/null || cp "$PRODUCT" opt/$PRODUCT/$PRODUCT || fatal "Can't find $PRODUCT binary in archive"
cp $PRODUCT opt/$PRODUCT/$PRODUCT || fatal "Can't find $PRODUCT binary in archive"
chmod 755 opt/$PRODUCT/$PRODUCT
[ -n "$VERSION" ] || VERSION="1.0"
......
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