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