mirror of
https://github.com/ClaytonWWilson/Scraper-for-theTVDB.com.git
synced 2025-12-15 17:28:46 +00:00
Edits in actions.py
This commit is contained in:
parent
9bcebbce48
commit
f8d29565f3
@ -143,14 +143,14 @@ def is_git_installed():
|
|||||||
|
|
||||||
def update():
|
def update():
|
||||||
try:
|
try:
|
||||||
code = subprocess.call(("git", "pull", "--ff-only"))
|
code = subprocess.call(("git", "pull", "--ff-only", "--quiet"))
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
print("\nError: Git not found. It's either not installed or you did "
|
print("\nError: Git not found. It's either not installed or you did "
|
||||||
"not clone this using git. Install instructions are on the GitHub: "
|
"not clone this using git. Install instructions are on the GitHub: "
|
||||||
"https://github.com/ClaytonWWilson/Image-fetcher-for-theTVDB.com")
|
"https://github.com/ClaytonWWilson/Image-fetcher-for-theTVDB.com")
|
||||||
return
|
return
|
||||||
if code == 0:
|
if code == 0:
|
||||||
print("\nProgram has been updated.")
|
print("\nThe program has been updated.\n")
|
||||||
else:
|
else:
|
||||||
print("\nThere was an error while updating. This may be caused by edits "
|
print("\nThere was an error while updating. This may be caused by edits "
|
||||||
"you have made to the code.")
|
"you have made to the code.")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user