const shell = require('shelljs');

function exec(action) {
    const res = shell.exec(action);

    if (res.code !== 0) {
        shell.echo('Unable to build zookeeper library');
        return shell.exit(1);
    }

    return res.stdout;
}

function retry(func, ...args) {
    try {
        return func(...args);
    } catch (e) {
        shell.echo(e.message);
        return func(...args);
    }
}

module.exports = {
    exec,
    retry,
};

@@ -356,16 +356,61 @@
 ssage);%0A
+        shell.echo(%60Retrying $%7Bfunc.name%7D%60);%0A
         

print when retry download