diff --git a/astronaut/astronaut b/astronaut/astronaut index da89dae..ac4dcd3 100755 --- a/astronaut/astronaut +++ b/astronaut/astronaut @@ -107,7 +107,7 @@ download() { _msg "Downloading $filename" [ "$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")" if [ "$2" -a "$checksum" != "$2" ]; then @@ -121,7 +121,7 @@ extract() { _msg "Extracting $1" [ "$2" ] && local dest="$2" || local dest="." [ "$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() {