mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-20 21:33:16 -07:00
Double-check for files to stat in .plexupdate check
This commit is contained in:
parent
034c618eed
commit
94007c3923
1 changed files with 3 additions and 1 deletions
|
@ -264,7 +264,9 @@ if ! hash wget 2>/dev/null; then
|
|||
fi
|
||||
|
||||
#FIXME: Temporary error checking to notify people of change from .plexupdate to plexupdate.conf
|
||||
if [ -z "${CONFIGFILE}" -a -f ~/.plexupdate -a ! -f /etc/plexupdate.conf ] || [ `stat -Lc %i "${CONFIGFILE}"` == `stat -Lc %i ~/.plexupdate` ]; then
|
||||
# We have to double-check that both files exist before trying to stat them. This is going away soon.
|
||||
if [ -z "${CONFIGFILE}" -a -f ~/.plexupdate -a ! -f /etc/plexupdate.conf ] || \
|
||||
[ -f "${CONFIGFILE}" -a -f ~/.plexupdate ] && [ `stat -Lc %i "${CONFIGFILE}"` == `stat -Lc %i ~/.plexupdate` ]; then
|
||||
warn ".plexupdate has been deprecated. You should move your configuration to /etc/plexupdate.conf"
|
||||
if [ -t 1 ]; then
|
||||
for i in `seq 1 5`; do echo -n .\ ; sleep 1; done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue