Avoid warning messages from rm
Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
parent
79e9102424
commit
9288f775e7
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ while running:
|
||||||
|
|
||||||
# If there is an archive, we need to extract it first and remove old data
|
# If there is an archive, we need to extract it first and remove old data
|
||||||
if os.path.exists(output + "/" + part + "/" + area_major + "/" + area + ".txz"):
|
if os.path.exists(output + "/" + part + "/" + area_major + "/" + area + ".txz"):
|
||||||
run("bash -c 'cd " + tmp_dir + " && tar -xf " + output + "/" + part + "/" + area_major + "/" + area + ".txz && rm " + area + "/*" + name + "*'", shell=True)
|
run("bash -c 'cd " + tmp_dir + " && tar -xf " + output + "/" + part + "/" + area_major + "/" + area + ".txz && rm -f " + area + "/*" + name + "*'", shell=True)
|
||||||
else:
|
else:
|
||||||
run("mkdir -p " + tmp_dir + "/" + area, shell=True)
|
run("mkdir -p " + tmp_dir + "/" + area, shell=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue