Create inventory directory when loading a level

This commit is contained in:
blinry 2020-11-25 14:47:04 +01:00
parent 1289ce19a3
commit c863814862

View file

@ -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: