#!/usr/bin/env bash
# http://github.com/balena-io/etcher

AVAILABLE=/etc/apt/sources.list-available
ACTIVE=/etc/apt/sources.list.d

echo "deb https://deb.etcher.io stable etcher" | sudo tee ${AVAILABLE}/etcher.list
sudo ln -s ${AVAILABLE}/etcher.list ${ACTIVE}/etcher.list

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 379CE192D401AB61

sudo apt update
sudo apt install -y balena-etcher-electron

apt clean
