• Marc Cornellà's avatar
    fix(extract): safely remove extract directory · d47e1d65
    Marc Cornellà authored
    The previous code would remove the extract directory if the command failed.
    This could be bad because we're not checking if the extract directory
    already existed (since we're using `mkdir -p`), so it could be possible
    that the extract operation failed, and we'd be removing a directory that
    already existed and had files in it.
    
    This change only removes the directory if there are no files in it, regardless
    of whether the extract operation was successful or not. This is much safer.
    d47e1d65
Name
Last commit
Last update
.github Loading commit data...
cache Loading commit data...
custom Loading commit data...
lib Loading commit data...
log Loading commit data...
plugins Loading commit data...
templates Loading commit data...
themes Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.gitpod.Dockerfile Loading commit data...
.gitpod.yml Loading commit data...
.prettierrc Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE.txt Loading commit data...
README.md Loading commit data...
SECURITY.md Loading commit data...
oh-my-zsh.sh Loading commit data...