Commit f472ed7e authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-download: replace spaces in downloaded filenames with -

parent fde2ccad
...@@ -86,7 +86,7 @@ __download_pkg_urls() ...@@ -86,7 +86,7 @@ __download_pkg_urls()
[ "$i" = "*" ] && warning "Incorrect true status from eget. No saved files from download $url, ignoring" && continue [ "$i" = "*" ] && warning "Incorrect true status from eget. No saved files from download $url, ignoring" && continue
[ -s "$tmppkg/$i" ] || continue [ -s "$tmppkg/$i" ] || continue
chmod $verbose a+r "$tmppkg/$i" chmod $verbose a+r "$tmppkg/$i"
local si="${i/ /}" local si="$(echo "$i" | sed -e 's| |-|g')"
if [ "$si" != "$i" ] ; then if [ "$si" != "$i" ] ; then
info "Space detected in the downloaded file '$i', removing spaces ..." info "Space detected in the downloaded file '$i', removing spaces ..."
mv -v "$tmppkg/$i" "$tmppkg/$si" mv -v "$tmppkg/$i" "$tmppkg/$si"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment