md5 -> sha256
This commit is contained in:
@@ -89,16 +89,16 @@ function zipit() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function getmd5() {
|
function getsha256() {
|
||||||
if [ -x $(which md5sum) ]; then
|
if [ -x $(which sha256sum) ]; then
|
||||||
echo "md5sum is installed, getting md5..." >> $GLOG
|
echo "sha256sum is installed, getting sha256..." >> $GLOG
|
||||||
echo "Getting md5sum..."
|
echo "Getting sha256sum..."
|
||||||
GMD5=$(md5sum $OUT/$BUILDZIP)
|
GSHA256=$(sha256sum $OUT/$BUILDZIP)
|
||||||
echo -e "$GMD5" > $OUT/$BUILDZIP.md5sum
|
echo -e "$GSHA256" > $OUT/$BUILDZIP.sha256sum
|
||||||
echo "md5 exported at $OUT/$BUILDZIP.md5sum"
|
echo "sha256 exported at $OUT/$BUILDZIP.sha256sum"
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
echo "md5sum is not installed, aborting" >> $GLOG
|
echo "sha256sum is not installed, aborting" >> $GLOG
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -113,7 +113,7 @@ else
|
|||||||
echo "No realpath found!" >> $GLOG
|
echo "No realpath found!" >> $GLOG
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for func in create zipit getmd5 clean; do
|
for func in create zipit getsha256 clean; do
|
||||||
$func
|
$func
|
||||||
ret=$?
|
ret=$?
|
||||||
if [ "$ret" == 0 ]; then
|
if [ "$ret" == 0 ]; then
|
||||||
@@ -124,5 +124,5 @@ for func in create zipit getmd5 clean; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
echo "Done!" >> $GLOG
|
echo "Done!" >> $GLOG
|
||||||
echo "Build completed: $GMD5"
|
echo "Build completed: $GSHA256"
|
||||||
exit 0
|
exit 0
|
||||||
|
Reference in New Issue
Block a user