mirror of https://github.com/arendst/Tasmota.git
Small changes to berry_custom to better keep the local repository clean (#21491)
* keep berry_custom clean with regards to GIT * keep .keep
This commit is contained in:
parent
c161f63c9a
commit
688f3ffb19
|
@ -1 +1,4 @@
|
||||||
_temp*
|
_temp*
|
||||||
|
|
||||||
|
solidify/*
|
||||||
|
embedded/*
|
||||||
|
|
|
@ -39,10 +39,12 @@ def cleanFolder():
|
||||||
os.remove(join(BERRY_SOLIDIFY_DIR,"src",file))
|
os.remove(join(BERRY_SOLIDIFY_DIR,"src",file))
|
||||||
tempfiles = [f for f in os.listdir(join(BERRY_SOLIDIFY_DIR,"src","embedded")) if ".gitignore" not in f]
|
tempfiles = [f for f in os.listdir(join(BERRY_SOLIDIFY_DIR,"src","embedded")) if ".gitignore" not in f]
|
||||||
for file in tempfiles:
|
for file in tempfiles:
|
||||||
os.remove(join(BERRY_SOLIDIFY_DIR,"src","embedded",file))
|
if file != ".keep":
|
||||||
|
os.remove(join(BERRY_SOLIDIFY_DIR,"src","embedded",file))
|
||||||
tempfiles = [f for f in os.listdir(join(BERRY_SOLIDIFY_DIR,"src","solidify")) if ".gitignore" not in f]
|
tempfiles = [f for f in os.listdir(join(BERRY_SOLIDIFY_DIR,"src","solidify")) if ".gitignore" not in f]
|
||||||
for file in tempfiles:
|
for file in tempfiles:
|
||||||
os.remove(join(BERRY_SOLIDIFY_DIR,"src","solidify",file))
|
if file != ".keep":
|
||||||
|
os.remove(join(BERRY_SOLIDIFY_DIR,"src","solidify",file))
|
||||||
|
|
||||||
|
|
||||||
def addEntryToModtab(source):
|
def addEntryToModtab(source):
|
||||||
|
|
Loading…
Reference in New Issue