mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-06 13:17:42 +03:00
feature #1303: Make downloader.sh compatible with openssl 0.9 and 1.0
This commit is contained in:
parent
73baa84fbd
commit
71ab59f84f
@ -64,7 +64,7 @@ function hasher
|
||||
algo=$1
|
||||
|
||||
if [ -n "$algo" ]; then
|
||||
openssl dgst -$algo > $HASH_FILE
|
||||
openssl dgst -$algo | awk '{print $NF}' > $HASH_FILE
|
||||
else
|
||||
# Needs something consuming stdin or the pipe will break
|
||||
cat >/dev/null
|
||||
@ -121,7 +121,7 @@ if [ $? != 0 ] ; then
|
||||
echo "Arguments error"
|
||||
exit -1
|
||||
fi
|
||||
|
||||
|
||||
eval set -- "$TEMP"
|
||||
|
||||
while true; do
|
||||
|
Loading…
Reference in New Issue
Block a user