get-scripts annotate etcher @ rev 78

Remove ashism ==
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 26 09:13:38 2019 +0100 (2019-02-26)
parents
children
rev   line source
pascal@74 1 SHORT_DESC="Burn images to SD cards & USB drives, safely and easily"
pascal@74 2 WEB_SITE="https://etcher.io/"
pascal@74 3 # end of get.list data
pascal@74 4
pascal@74 5 WGET_URL=$(busybox wget -O - "$WEB_SITE/cli/" | sed \
pascal@74 6 '/linux-x86/!d;s|.*href="\([^"]*linux-x86[^"]*\)".*|\1|')
pascal@74 7 TARBALL="$(basename $WGET_URL)"
pascal@74 8 wget -O $TARBALL $WGET_URL
pascal@74 9 [ -s $TARBALL ] || abort_package
pascal@74 10 VERSION="$(echo $TARBALL | sed 's|[^0-9]*\(.*\)\-linux.*|\1|')"
pascal@74 11
pascal@74 12 busybox xf $TARBALL
pascal@74 13 mkdir -p $PACKAGE-$VERSION/fs/usr/share/etcher $PACKAGE-$VERSION/fs/usr/bin
pascal@74 14 mv Etcher*/* $PACKAGE-$VERSION/fs/usr/share/etcher
pascal@74 15 ln -s /usr/share/etcher/etcher $PACKAGE-$VERSION/fs/usr/bin/etcher