mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-14 02:26:56 -07:00
Make cron logic in installer more readable
This commit is contained in:
parent
0f3dac9585
commit
8dda798664
1 changed files with 6 additions and 2 deletions
|
@ -236,7 +236,11 @@ configure_cron() {
|
|||
return 1
|
||||
fi
|
||||
|
||||
[ -f "$CONFIGCRON" ] && source "$CONFIGCRON"
|
||||
if [ -f "$CONFIGCRON" ]; then
|
||||
#this is redundant since null is evaluated as yes anyway, but including for readability
|
||||
CRON=yes
|
||||
source "$CONFIGCRON"
|
||||
fi
|
||||
|
||||
echo
|
||||
echo -n "Would you like to set up automatic daily updates for Plex? "
|
||||
|
@ -354,7 +358,7 @@ if yesno; then
|
|||
if wget --show-progress -V &> /dev/null; then
|
||||
PROGRESS_OPT="-P"
|
||||
fi
|
||||
if [ "$AUTOINSTALL" == "yes" ] || [ -f "$CONFIGCRON" ]; then
|
||||
if [ "$AUTOINSTALL" == "yes" ] || [ "$CRON" == "yes" ]; then
|
||||
sudo -E "$FULL_PATH/plexupdate.sh" $PROGRESS_OPT --config "$CONFIGFILE"
|
||||
else
|
||||
"$FULL_PATH/plexupdate.sh" $PROGRESS_OPT --config "$CONFIGFILE"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue