mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-14 18:47:16 -07:00
Auto update now handles some more obscure situations
Launch plexupdate using "bash plexupdate.sh" will not cause the autoupdate function to fail anymore. Also tries to handle the error if it would fail.
This commit is contained in:
parent
b46b24f46f
commit
653588d43c
1 changed files with 10 additions and 1 deletions
|
@ -121,7 +121,16 @@ if [ "${AUTOUPDATE}" == "yes" ]; then
|
|||
fi
|
||||
echo "OK"
|
||||
popd >/dev/null
|
||||
$0 ${ALLARGS} -U
|
||||
if ! type "$0" 2>/dev/null >/dev/null ; then
|
||||
if [ -f "$0" ]; then
|
||||
/bin/bash "$0" ${ALLARGS} -U
|
||||
else
|
||||
echo "Error: Unable to relaunch, couldn't find $0"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
"$0" ${ALLARGS} -U
|
||||
fi
|
||||
exit $?
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue