diff --git a/plexupdate.sh b/plexupdate.sh index e845e81..68306b5 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -320,7 +320,7 @@ if [ "${AUTOSTART}" == "yes" ]; then sudo service plexmediaserver start fi -if [ "${AUTOSTART}" == "yes" then +if [ "${AUTOSTART}" == "yes"]; then if [ "${REDHAT}" == "no" ]; then echo "The AUTOSTART [-s] option may not be needed on your distribution." fi @@ -328,8 +328,7 @@ if [ "${AUTOSTART}" == "yes" then if [ $? -ne 0 ]; then echo "Error: You need to be root to use autoinstall option." exit 1 - fi - if [ "${REDHAT}" == "no" ]; then + elif [ "${REDHAT}" == "no" ]; then echo "The AUTOSTART [-s] option may not be needed on your distribution." fi sudo service plexmediaserver start