update to dpkg function

This commit is contained in:
Stefen Auris 2021-08-21 22:38:12 -04:00
parent d1a4a81894
commit 84953f3843
2 changed files with 6 additions and 3 deletions

View file

@ -5,7 +5,7 @@ function dpkg_url() {
local src_url=$1
local args=${@:2}
wget -O $tmp_deb $src_url &&
wget -q --show-progress -O $tmp_deb $src_url &&
sudo dpkg -i $tmp_deb $args &&
{ rm -f $tmp_deb; true; } || # commands above succeeded, remove tmp file
{ rm -f $tmp_deb; false; } # commands above failed, remove tmp file anyway

View file

@ -6,12 +6,15 @@ function dpkg_url() {
local src_url=$1
local args=${@:2}
wget -O $tmp_deb $src_url &&
wget -q --show-progress -O $tmp_deb $src_url &&
sudo dpkg -i $tmp_deb $args &&
{ rm -f $tmp_deb; true; } || # commands above succeeded, remove tmp file
{ rm -f $tmp_deb; false; } # commands above failed, remove tmp file anyway
}
dpkg_url http://mirrors.kernel.org/ubuntu/pool/universe/r/rust-exa/exa_0.9.0-4_amd64.deb
dpkg_url https://github.com/muesli/duf/releases/download/v0.6.2/duf_0.6.2_linux_amd64.deb
dpkg_url https://github.com/ClementTsang/bottom/releases/download/0.6.3/bottom_0.6.3_amd64.deb
dpkg_url https://github.com/dandavison/delta/releases/download/0.8.3/git-delta_0.8.3_amd64.deb
#Link new bottom config
rm ~/.config/bottom/bottom.toml
ln -s ~/stevset/config/bottom/bottom.toml ~/.config/bottom