From 9288f775e74723b06cccc7611489916aa81e4d79 Mon Sep 17 00:00:00 2001 From: fly Date: Sun, 18 Apr 2021 14:18:21 +0000 Subject: [PATCH] Avoid warning messages from rm Signed-off-by: fly --- worldbuild-packager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldbuild-packager.py b/worldbuild-packager.py index 146ac4f..819f937 100755 --- a/worldbuild-packager.py +++ b/worldbuild-packager.py @@ -170,7 +170,7 @@ while running: # 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"): - 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: run("mkdir -p " + tmp_dir + "/" + area, shell=True)