mirror of
https://github.com/Encryptshell/Pritunl-API-crack.git
synced 2025-11-29 08:33:10 +00:00
Do not write if not needed
This commit is contained in:
@@ -55,9 +55,9 @@ def doTheReplace(fromApiStr, toApiStr, fromAuthStr, toAuthStr):
|
|||||||
newLines = newLines.replace(base64.b64encode(f'https://{fromApiStr}/subscription'.encode()).decode(), base64.b64encode(f'https://{toApiStr}/subscription'.encode()).decode())
|
newLines = newLines.replace(base64.b64encode(f'https://{fromApiStr}/subscription'.encode()).decode(), base64.b64encode(f'https://{toApiStr}/subscription'.encode()).decode())
|
||||||
if newLines != lines:
|
if newLines != lines:
|
||||||
numFiles += 1
|
numFiles += 1
|
||||||
fh = open(os.path.join(p, ff), 'w')
|
fh = open(os.path.join(p, ff), 'w')
|
||||||
fh.writelines(newLines)
|
fh.writelines(newLines)
|
||||||
fh.close()
|
fh.close()
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
# Brrr - binary files...
|
# Brrr - binary files...
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user