mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-22 16:20:19 +01:00
Make web-shell work when changing directories
This commit is contained in:
parent
2f115c99d4
commit
a1bb607c7e
1 changed files with 2 additions and 1 deletions
|
@ -56,7 +56,7 @@ function run(cmd) {
|
|||
|
||||
if (output.endsWith("# ")) {
|
||||
emulator.remove_listener("serial0-output-char", listener)
|
||||
let outputWithoutPrompt = output.slice(0, -4)
|
||||
let outputWithoutPrompt = output.slice(0, -3)
|
||||
let outputWithoutFirstLine = outputWithoutPrompt.slice(
|
||||
outputWithoutPrompt.indexOf("\n") + 1
|
||||
)
|
||||
|
@ -114,6 +114,7 @@ function boot() {
|
|||
// Wait for the emulator to start, then resolve the promise.
|
||||
var interval = setInterval(() => {
|
||||
if (emulator.is_running()) {
|
||||
run("PS1='# '")
|
||||
clearInterval(interval)
|
||||
resolve(true)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue