From f405426fba2e216bd829684ba788bbb4e1c3260a Mon Sep 17 00:00:00 2001 From: Henric Andersson Date: Thu, 13 Aug 2015 17:48:00 -0700 Subject: [PATCH] Added -y to YUM and removed trailing whitespaces --- plexupdate.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plexupdate.sh b/plexupdate.sh index a3efb11..6178af1 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -258,10 +258,9 @@ fi if [ -f "${DOWNLOADDIR}/${FILENAME}" -a "${FORCE}" != "yes" ]; then echo "File already exists, won't download." - if [ "${AUTOINSTALL}" != "yes" ]; then + if [ "${AUTOINSTALL}" != "yes" ]; then exit 2 fi - SKIP_DOWNLOAD="yes" fi @@ -282,7 +281,7 @@ fi if [ "${AUTOINSTALL}" == "yes" ]; then if [ "${REDHAT}" == "yes" ]; then - sudo yum localinstall "${DOWNLOADDIR}/${FILENAME}" + sudo yum -y localinstall "${DOWNLOADDIR}/${FILENAME}" else sudo dpkg -i "${DOWNLOADDIR}/${FILENAME}" fi