pkgscript.js
function setSpawnObject(admin) {
    admin = ((admin === undefined) ? getDefaultAdmin() : admin);
    if (isLinux && admin) {
        spawn = sudoarg;
    } else {
        spawn =  cparg.spawn;
    }
    return admin;
}
function setSpawnObject(admin) {
    admin = ((admin === undefined) ? getDefaultAdmin() : admin);
    if (isLinux && admin) {
        spawn = sudoarg;
    } else {
        spawn =  cparg.spawn;
    }
    return admin;
}
function setSpawnObject ( admin ) { admin = ( ( admin === undefined ) ? getDefaultAdmin ( ) : admin ) ; if ( isLinux && admin ) { spawn = sudoarg ; } else { spawn = cparg . spawn ; } return admin ; }
Set the current spawn object.
Can be sudo for getting the admin prompt or child_process

@param admin
Set the current spawn object . Can be sudo for getting the admin prompt or child_process