mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-07-16 02:02:58 -07:00
More cleanup
This commit is contained in:
parent
2ddabf92bd
commit
241fe12e04
2 changed files with 1 additions and 2 deletions
|
@ -38,7 +38,6 @@ install() {
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
[ -z "$DISTRO_INSTALL" ] && check_distro
|
[ -z "$DISTRO_INSTALL" ] && check_distro
|
||||||
echo "Installing using '$DISTRO_INSTALL $1'"
|
|
||||||
|
|
||||||
if [ $EUID -ne 0 ]; then
|
if [ $EUID -ne 0 ]; then
|
||||||
sudo $DISTRO_INSTALL $1 || abort "Failed while trying to install '$1'. Please install it manually and try again."
|
sudo $DISTRO_INSTALL $1 || abort "Failed while trying to install '$1'. Please install it manually and try again."
|
||||||
|
|
|
@ -300,7 +300,7 @@ if [ -z "${DISTRO_INSTALL}" ]; then
|
||||||
check_distro
|
check_distro
|
||||||
BUILD="linux-ubuntu-${ARCH}"
|
BUILD="linux-ubuntu-${ARCH}"
|
||||||
if [ "${FORCE}" = "yes" ]; then
|
if [ "${FORCE}" = "yes" ]; then
|
||||||
DISTRO_INSTALL="${DISTRO REINSTALL}"
|
DISTRO_INSTALL="${DISTRO_REINSTALL}"
|
||||||
fi
|
fi
|
||||||
elif [ -z "${DISTRO}" -o -z "${BUILD}" ]; then
|
elif [ -z "${DISTRO}" -o -z "${BUILD}" ]; then
|
||||||
error "You must define both DISTRO and BUILD"
|
error "You must define both DISTRO and BUILD"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue