aboutsummaryrefslogtreecommitdiff
path: root/scenarios/clean
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-09-19 14:16:08 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-09-19 14:16:08 +0200
commit549c548e7cc8f99da37b931b6aa991093f097fd7 (patch)
tree732b76f19b20a667ccb00119d7a34f8db674fcef /scenarios/clean
parentbd6a1253999e05fb77fe74e51ddfea507b5d7361 (diff)
downloadmknet-549c548e7cc8f99da37b931b6aa991093f097fd7.tar.gz
mknet-549c548e7cc8f99da37b931b6aa991093f097fd7.zip
Commit WIP
Diffstat (limited to 'scenarios/clean')
-rwxr-xr-xscenarios/clean2
1 files changed, 2 insertions, 0 deletions
diff --git a/scenarios/clean b/scenarios/clean
index 325edec..9d23543 100755
--- a/scenarios/clean
+++ b/scenarios/clean
@@ -4,5 +4,7 @@ import os
from fragments import garage, shared
garage.destroy()
+if len(shared.storage_path) > 8 and shared.id() == 1:
+ shared.exec(f"rm -r {shared.storage_path}")
shared.log("clean done")