Last active
March 23, 2019 07:45
-
-
Save strobo/715feeea099c9efb190b5d5de8ad2552 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -Ceu | |
install_deb() { | |
local _url | |
local _dir | |
# set url | |
_url=$1 | |
# make temp dir | |
_dir="$(mktemp -d 2>/dev/null)" | |
# download deb file | |
wget ${_url} -P ${_dir} | |
# install | |
sudo dpkg -i ${_dir}/*.deb | |
#remove temp dir and deb file | |
rm -r ${_dir} | |
} | |
install_deb "https://www.segger.com/downloads/jlink/Ozone_Linux_x86_64.deb" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment