diff --git a/misc/emby-update.sh b/misc/emby-update.sh index fd947d03..86a67a9e 100644 --- a/misc/emby-update.sh +++ b/misc/emby-update.sh @@ -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