From 90f223fc47a959d62d2e8ff810de4ab55588579a Mon Sep 17 00:00:00 2001 From: Azlux Date: Tue, 2 Oct 2018 23:11:52 +0200 Subject: [PATCH] better git check --- mumbleBot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mumbleBot.py b/mumbleBot.py index 8861928..11de8e0 100644 --- a/mumbleBot.py +++ b/mumbleBot.py @@ -207,7 +207,7 @@ class MumbleBot: msg += "Youtube-dl is up-to-date" else: msg += "Update done : " + tp.split('Successfully installed')[1] - if 'Your branch is up-to-date' in sp.check_output(['/usr/bin/env', 'git', 'status']).decode(): + if 'Unpacking' not in sp.check_output(['/usr/bin/env', 'git', 'fetch']).decode(): msg += "
Botamusique is up-to-date" else: msg += "
Botamusique have available update"