mirror of
https://github.com/thewhiteh4t/pwnedOrNot.git
synced 2026-08-17 18:35:40 +02:00
Fixed a whitespace issue in version manager
Former-commit-id: 4d9556cbe8
This commit is contained in:
+4
-2
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user