Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b819f546 authored by Jan-Philipp Litza's avatar Jan-Philipp Litza Committed by Julian Xhokaxhiu
Browse files

Use md5sum files if available

parent f6a17eed
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -146,7 +146,11 @@

            if ( empty($path) ) $path = $this->filePath;
            // Pretty much faster if it is available
            if ( $this->commandExists( 'md5sum' ) ) {
            if ( file_exists( $path . ".md5sum" ) ) {
                $tmp = explode("  ", file_get_contents( $path . '.md5sum' ));
                $ret = $tmp[0];
            }
            elseif ( $this->commandExists( 'md5sum' ) ) {
                $tmp = explode("  ", exec( 'md5sum ' . $path));
                $ret = $tmp[0];
            } else {