mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-22 16:20:19 +01:00
Create inventory directory when loading a level
This commit is contained in:
parent
1289ce19a3
commit
c863814862
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ func construct():
|
||||||
game.global_shell.cd(repo.path)
|
game.global_shell.cd(repo.path)
|
||||||
game.global_shell.run("git init")
|
game.global_shell.run("git init")
|
||||||
game.global_shell.run("git symbolic-ref HEAD refs/heads/main")
|
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.
|
# Add other repos as remotes.
|
||||||
for r2 in repos:
|
for r2 in repos:
|
||||||
|
|
Loading…
Reference in a new issue