From c8638148621a4487608df6f07a920fd400b2f56c Mon Sep 17 00:00:00 2001 From: blinry Date: Wed, 25 Nov 2020 14:47:04 +0100 Subject: [PATCH] Create inventory directory when loading a level --- scenes/level.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scenes/level.gd b/scenes/level.gd index 0d68d3c..22094d5 100644 --- a/scenes/level.gd +++ b/scenes/level.gd @@ -87,7 +87,7 @@ func construct(): game.global_shell.cd(repo.path) game.global_shell.run("git init") game.global_shell.run("git symbolic-ref HEAD refs/heads/main") - game.global_shell.run("test -f ~/fake-editor && rm -rf ~/inventory || exit 1") + game.global_shell.run("test -f ~/fake-editor && rm -rf ~/inventory && mkdir -p ~/inventory/ || exit 1") # Add other repos as remotes. for r2 in repos: