public static function unpack(string $releaseName): bool
    {
        try {
            $p = new \PharData(sprintf("%s/%s.tar", Utilities::getBasePath(), $releaseName));
            $p->extractTo(Utilities::getBasePath());

            if (!unlink(sprintf("%s/%s.tar", Utilities::getBasePath(), $releaseName))) {
                printf('ERROR: Can not remove the decompressed archive%s', PHP_EOL);
                return false;
            }
        } catch (\PharException $e) {
            printf('ERROR: Can not unpack the archive%s%s', PHP_EOL, $e);
            return false;
        }

        return true;
    }
public static function unpack(string $releaseName): bool
    {
        try {
            $p = new \PharData(sprintf("%s/%s.tar", Utilities::getBasePath(), $releaseName));
            $p->extractTo(Utilities::getBasePath());

            if (!unlink(sprintf("%s/%s.tar", Utilities::getBasePath(), $releaseName))) {
                printf('ERROR: Can not remove the decompressed archive%s', PHP_EOL);
                return false;
            }
        } catch (\PharException $e) {
            printf('ERROR: Can not unpack the archive%s%s', PHP_EOL, $e);
            return false;
        }

        return true;
    }
public static function unpack ( string $ releaseName ) : bool { try { $ p = new \ PharData ( sprintf ( "%s/%s.tar" , Utilities :: getBasePath ( ) , $ releaseName ) ) ; $ p -> extractTo ( Utilities :: getBasePath ( ) ) ; if ( ! unlink ( sprintf ( "%s/%s.tar" , Utilities :: getBasePath ( ) , $ releaseName ) ) ) { printf ( 'ERROR: Can not remove the decompressed archive%s' , PHP_EOL ) ; return false ; } } catch ( \ PharException $ e ) { printf ( 'ERROR: Can not unpack the archive%s%s' , PHP_EOL , $ e ) ; return false ; } return true ; }
unpacks the release archive
unpacks the release archive