|
@ -107,7 +107,7 @@ download() { |
|
|
_msg "Downloading $filename" |
|
|
_msg "Downloading $filename" |
|
|
|
|
|
|
|
|
[ "$3" ] && local cmd="$3" || local cmd="$cmd_download" |
|
|
[ "$3" ] && local cmd="$3" || local cmd="$cmd_download" |
|
|
$(echo "$cmd" | sed -e 's@{dst}@'"$path"'@g' -e 's@{src}@'"$1"'@g') |
|
|
eval $(echo "$cmd" | sed -e "s@{dst}@'$path'@g" -e "s@{src}@'$1'@g") |
|
|
|
|
|
|
|
|
checksum="$(_mksum "$path")" |
|
|
checksum="$(_mksum "$path")" |
|
|
if [ "$2" -a "$checksum" != "$2" ]; then |
|
|
if [ "$2" -a "$checksum" != "$2" ]; then |
|
@ -121,7 +121,7 @@ extract() { |
|
|
_msg "Extracting $1" |
|
|
_msg "Extracting $1" |
|
|
[ "$2" ] && local dest="$2" || local dest="." |
|
|
[ "$2" ] && local dest="$2" || local dest="." |
|
|
[ "$3" ] && local cmd="$3" || local cmd="$cmd_extract" |
|
|
[ "$3" ] && local cmd="$3" || local cmd="$cmd_extract" |
|
|
$(echo "$cmd" | sed -e 's@{src}@'"$dir_source/$name/$1"'@g' -e 's@{dst}@'"$dest"'@g') |
|
|
eval $(echo "$cmd" | sed -e "s@{src}@'$dir_source/$name/$1'@g" -e "s@{dst}@'$dest'@g") |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
getfile() { |
|
|
getfile() { |
|
|