????

Your IP : 18.116.86.255


Current Path : /scripts/
Upload File :
Current File : //scripts/safeup2date

#!/usr/local/cpanel/3rdparty/bin/perl

# cpanel - scripts/safeup2date                     Copyright 2020 cPanel, L.L.C.
#                                                           All rights reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited

use strict;

open( UPTODATE, '-|' ) || exec( 'up2date', @ARGV );
my $inerr = 0;
while (<UPTODATE>) {
    if (m/packages.*not.*found/) {
        $inerr = 1;
    }
    if ( !$inerr ) { print; }
    if (m/^$/) {
        $inerr = 0;
    }
}
close(UPTODATE);