From 0ad1928df6aced1d08a587c8291d0117fb593ab0 Mon Sep 17 00:00:00 2001 From: Henric Andersson Date: Wed, 15 Feb 2017 08:47:25 -0800 Subject: [PATCH] Add helpful info when install fails --- plexupdate.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plexupdate.sh b/plexupdate.sh index 2ffeeb6..379041b 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -653,9 +653,12 @@ if [ "${AUTOINSTALL}" = "yes" ]; then if ! hash ldconfig 2>/dev/null && [ "${DISTRO}" = "ubuntu" ]; then export PATH=$PATH:/sbin fi - # no elif since DISTRO_INSTALL will produce error output for us ${DISTRO_INSTALL} "${DOWNLOADDIR}/${FILENAME}" + if [ $? -ne 0 ]; then + # Clarify why this failed, so user won't be left in the dark + error "Was unable to install due to problems with package from plex.tv or your local linux setup" + fi fi if [ "${AUTODELETE}" = "yes" ]; then