From 4a6e4cdb0b76f4bae4d39587bc853dc9868efdf5 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 3 Jun 2018 09:57:28 +0530 Subject: [PATCH] Fixed a whitespace issue in version manager Former-commit-id: 4d9556cbe87f8c5141891ccf8c8af001b5514a15 --- pwnedornot.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pwnedornot.py b/pwnedornot.py index 4fd3d2c..cc781fc 100644 --- a/pwnedornot.py +++ b/pwnedornot.py @@ -31,6 +31,7 @@ def update(): print (G + '[+]' + C + ' Checking for updates...' + W + '\n') updated_version = requests.get('https://raw.githubusercontent.com/thewhiteh4t/pwnedOrNot/master/version.txt') updated_version = updated_version.text.split(' ')[1] + updated_version = updated_version.strip() if updated_version != version: print (G + '[!]' + C + ' A New Version is Available : ' + W + updated_version) ans = raw_input(G + '[!]' + C + ' Update ? [y/n] : ' + W) @@ -39,8 +40,9 @@ def update(): subprocess.Popen(['git', 'pull'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) print (G + '[+]' + C + ' Script Updated...Please Execute Again...') exit() - else: - print ('\n' + G + '[+]' + C + ' Script it up-to-date...') + else: + print (G + '[+]' + C + ' Script it up-to-date...' + '\n') + # commandline arguments ap = argparse.ArgumentParser()