Update emby-update.sh

This commit is contained in:
tteckster 2022-10-24 17:35:59 -04:00 committed by GitHub
parent 35ea321107
commit 02f32c5953
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,23 +11,6 @@ BFR="\\r\\033[K"
HOLD="-"
CM="${GN}${CL}"
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
read -p "This will Update ${APP} to ${LATEST}. Proceed(y/n)?" yn
case $yn in