development: Fix double download on linuxcontainers marketplace

This commit is contained in:
Ruben S. Montero committed 2018-12-19 18:30:54 +01:00
1 parent b0410dfab5
commit f6f10bd02c
1 file changed
+2 -1
+2 -1
View File
@@ -329,6 +329,7 @@ vcenter://*)
command="$VAR_LOCATION/remotes/datastore/vcenter_downloader.rb '$(esc_sq "$FROM")'"
;;
lxd://*)
file_type="application/octet-stream"
command="$VAR_LOCATION/remotes/datastore/lxd_downloader.sh \"$FROM\""
;;
*)
@@ -340,7 +341,7 @@ lxd://*)
;;
esac
file_type=$(get_type "$command")
[ -z "$file_type" ] && file_type=$(get_type "$command")
decompressor=$(get_decompressor "$file_type")
if [ -z "${MAX_SIZE}" ]; then