Skip to content

Commit

Permalink
Update plex_dupe.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Nov 20, 2019
1 parent f5ba6e2 commit ddf0784
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions menu/plex_dupe/plex_dupe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,17 @@ EOF

case $typed in
1)
echo -e "true" >/var/plex_dupe/plex.authdel && clear && question1 ;;
file="/opt/plex_dupefinder/config.json"
if [[ -f $file ]]; then
echo -e "true" >/var/plex_dupe/plex.authdel
ansible-playbook /opt/plexguide/menu/pg.yml --tags plex_dupefinder >/dev/null 2>&1
else echo -e "true" >/var/plex_dupe/plex.authdel ; fi && clear && question1 ;;
2)
echo -e "false" >/var/plex_dupe/plex.authdel && clear && question1 ;;
file="/opt/plex_dupefinder/config.json"
if [[ -f $file ]]; then
echo -e "false" >/var/plex_dupe/plex.authdel
ansible-playbook /opt/plexguide/menu/pg.yml --tags plex_dupefinder >/dev/null 2>&1
else echo -e "false" >/var/plex_dupe/plex.authdel ; fi && clear && question1 ;;
z)
exit
;;
Expand Down Expand Up @@ -238,7 +246,7 @@ EOF
ansible-playbook /opt/plexguide/menu/pg.yml --tags plex_dupefinder && clear && endbanner ;;
C)
credits && clear && question1 ;;
c)
c)
credits && clear && question1 ;;
z)
exit
Expand Down

0 comments on commit ddf0784

Please sign in to comment.