Update emby-update.sh
This commit is contained in:
parent
35ea321107
commit
02f32c5953
1 changed files with 0 additions and 17 deletions
|
@ -11,23 +11,6 @@ BFR="\\r\\033[K"
|
||||||
HOLD="-"
|
HOLD="-"
|
||||||
CM="${GN}✓${CL}"
|
CM="${GN}✓${CL}"
|
||||||
APP="Emby"
|
APP="Emby"
|
||||||
set -o errexit
|
|
||||||
set -o errtrace
|
|
||||||
set -o nounset
|
|
||||||
set -o pipefail
|
|
||||||
shopt -s expand_aliases
|
|
||||||
alias die='EXIT=$? LINE=$LINENO error_exit'
|
|
||||||
trap die ERR
|
|
||||||
|
|
||||||
function error_exit() {
|
|
||||||
trap - ERR
|
|
||||||
local reason="Unknown failure occured."
|
|
||||||
local msg="${1:-$reason}"
|
|
||||||
local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE"
|
|
||||||
echo -e "$flag $msg" 1>&2
|
|
||||||
exit $EXIT
|
|
||||||
}
|
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
read -p "This will Update ${APP} to ${LATEST}. Proceed(y/n)?" yn
|
read -p "This will Update ${APP} to ${LATEST}. Proceed(y/n)?" yn
|
||||||
case $yn in
|
case $yn in
|
||||||
|
|
Loading…
Reference in a new issue