Skip to content

The installer exits without waiting for the completion of git clone #11

Description

@crhg

The installer exits without waiting for the completion of git clone. This is not a problem when running the installer manually. However, if you write .zshrc to automatically run the installer if zplug is not installed, subsequent processing using zplug will cause an error depending on the timing.

It seems that spin() is responsible for waiting for the job to finish, but it does not seem to work well.

If you add the following code to the end of the installer, the output will be as follows. It is expected to wait for 10 seconds sleeping, but in fact it finished almost immediately.

date
execute \
    --title \
    "sleep 10" \
    "sleep 10"
date
% cat installer.zsh | zsh
 ✔  Checking if your zsh version is newer than 4.1.9 [SUCCEEDED]
 ✔  Installing zplug to /Users/matsui/.zplug [SUCCEEDED]
 All processes are successfully completed 🎉
 For more information, see http://zplug.sh 🌺
 Enjoy zplug!
Mon Nov 12 17:16:24 JST 2018
 ✔  sleep 10 [SUCCEEDED]
Mon Nov 12 17:16:25 JST 2018

My environment is as follows.

zsh 5.6.2 (x86_64-apple-darwin18.0.0)
GNU Awk 4.2.1, API: 2.0 (GNU MPFR 4.0.1, GNU MP 6.1.2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions