Skip to content
Discussion options

You must be logged in to vote

Done. My task for download Grav CMS:

task('grav:download_zip', function () {
    // get by url
    run('wget -O {{release_path}}/grav_latest.zip https://getgrav.org/download/core/grav-admin/latest');
    // unzip it in same directory
    run('unzip {{release_path}}/grav_latest.zip -d {{release_path}}');
    // move all grav-admin files (+ dotfiles dotfolders) 
    run('mv {{release_path}}/grav-admin/* {{release_path}}/grav-admin/.[!.]*  {{release_path}}');
    // remove zip and extracted folder
    run('rm -r {{release_path}}/grav_latest.zip {{release_path}}/grav-admin');
    // delete all in user except plugins
    run('find {{release_path}}/user -mindepth 1 -maxdepth 1 -name plugins -pr…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Sogl
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Sogl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants