Remove leading/trailing spaces in name

This commit is contained in:
CorpNewt 2019-12-28 14:17:58 -06:00 committed by GitHub
parent 7641caed36
commit 8dc2a1c78a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -221,7 +221,7 @@ class gibMacOS:
self.resize()
cwd = os.getcwd()
os.chdir(os.path.dirname(os.path.realpath(__file__)))
name = "{} - {} {}".format(prod["product"], prod["version"], prod["title"]).replace(":","")
name = "{} - {} {}".format(prod["product"], prod["version"], prod["title"]).replace(":","").strip()
if os.path.exists(os.path.join(os.getcwd(), self.saves, self.current_catalog, name)):
while True:
self.u.head("Already Exists")