Make the update notification working

This commit is contained in:
azlux
2018-10-03 22:58:25 +02:00
committed by GitHub
parent a45cb24251
commit 49f8cb1007

View File

@ -207,7 +207,7 @@ class MumbleBot:
msg += "Youtube-dl is up-to-date"
else:
msg += "Update done : " + tp.split('Successfully installed')[1]
if 'Unpacking' not in sp.check_output(['/usr/bin/env', 'git', 'fetch']).decode():
if 'up-to-date' not in sp.check_output(['/usr/bin/env', 'git', 'pull']).decode():
msg += "<br /> Botamusique is up-to-date"
else:
msg += "<br /> Botamusique have available update"