BuildSystem: Use the detected name for MD5 everywhere.
authorAlexander Traud <pabstraud@compuserve.com>
Wed, 17 Jan 2018 14:36:14 +0000 (15:36 +0100)
committerAlexander Traud <pabstraud@compuserve.com>
Wed, 17 Jan 2018 14:36:14 +0000 (15:36 +0100)
Affacted the (automatic) download script for external modules:
./build_tools/download_externals

ASTERISK-27596

Change-Id: If4c3176f7bf58df32fec6e02a659f1a78d57cf4b

build_tools/download_externals

index efeb6c5..e12feb8 100755 (executable)
@@ -165,7 +165,7 @@ if [[ -f ${DESTDIR}${ASTMODDIR}/${module_name}.manifest.xml ]] ; then
                                        fi
                                fi
 
-                               cs=$(md5sum ${f} | cut -b1-32)
+                               cs=$(${MD5} ${f} | cut -b1-32)
                                if [[ "${cs}" !=  "${sum}" ]] ; then
                                        echo Checksum mismatch: ${f}
                                        need_install=1