mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-09-06 11:46:24 -07:00
Remove unnecessary delete() call in copy()
This commit is contained in:
parent
c37d5cd85a
commit
a9c9b4b376
1 changed files with 1 additions and 1 deletions
2
build.py
2
build.py
|
@ -113,7 +113,6 @@ def copy(source, dest):
|
|||
if srcinfo == PATH_NOTHING:
|
||||
raise FileNotFoundError(errno.ENOENT, os.strerror(errno.ENOENT), source)
|
||||
if srcinfo & PATH_FILE > 0 or srcinfo & PATH_LINK > 0:
|
||||
delete(dest)
|
||||
shutil.copy(source, dest)
|
||||
return
|
||||
if srcinfo & PATH_DIR > 0:
|
||||
|
@ -339,6 +338,7 @@ def install(prefix="/usr", document_root="/srv/gochan", js_only=False, css_only=
|
|||
"systemctl daemon-reload\n",
|
||||
"systemctl enable gochan.service\n",
|
||||
"systemctl start gochan.service")
|
||||
print("")
|
||||
|
||||
|
||||
def js(watch=False):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue