preparation for verbose output of shell commands (called by function exe())
This commit is contained in:
@@ -8,14 +8,14 @@ step_1() {
|
||||
local sourceList="/etc/apt/sources.list.d/tvheadend.list"
|
||||
local sourceEntry="deb https://apt.tvheadend.org/stable raspbian-stretch main"
|
||||
|
||||
apt update
|
||||
exe apt update
|
||||
saveReturn $?
|
||||
apt install coreutils wget apt-transport-https ca-certificates
|
||||
exe apt install coreutils wget apt-transport-https ca-certificates
|
||||
saveReturn $?
|
||||
endReturn
|
||||
|
||||
echo -n "Downloading tvheadend repository key ... "
|
||||
wget -qO- https://doozer.io/keys/tvheadend/tvheadend/pgp | sudo apt-key add -
|
||||
exe wget -qO- https://doozer.io/keys/tvheadend/tvheadend/pgp | sudo apt-key add -
|
||||
saveReturn $?
|
||||
endReturn
|
||||
|
||||
@@ -24,9 +24,9 @@ step_1() {
|
||||
|
||||
step_2_info() { echo "Install/Upate $toolName"; }
|
||||
step_2() {
|
||||
apt update
|
||||
exe apt update
|
||||
saveReturn $?
|
||||
apt install tvheadend
|
||||
exe apt install tvheadend
|
||||
saveReturn $?
|
||||
endReturn
|
||||
|
||||
@@ -39,14 +39,14 @@ step_99() {
|
||||
local sourceList="/etc/apt/sources.list.d/tvheadend.list"
|
||||
local sourceEntry="deb https://dl.bintray.com/mpmc/deb raspbianstretch release-4.2"
|
||||
|
||||
apt update && apt install dirmngr
|
||||
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61
|
||||
exe apt update && apt install dirmngr
|
||||
exe apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61
|
||||
if [ -f "$sourceList" ] ; then
|
||||
echo "Skipping creating of $sourceList; Already exists"
|
||||
return
|
||||
fi
|
||||
echo "$sourceEntry" > "$sourceList"
|
||||
apt update
|
||||
exe apt update
|
||||
saveReturn $?
|
||||
endReturn
|
||||
}
|
||||
|
Reference in New Issue
Block a user