This PR replaces __remote_copy with __remote_exec (preparation for skonfig/skonfig#74) in __download.
While doing this I noticed that there is some code duplication which I tried to resolve by merging common gencode functionality to download files and check sums into files/common.sh and reuse the code in the explorers to also detect cmd_{get,sum} for local execution.
This PR replaces
__remote_copy
with__remote_exec
(preparation for skonfig/skonfig#74) in__download
.While doing this I noticed that there is some code duplication which I tried to resolve by merging common gencode functionality to download files and check sums into
files/common.sh
and reuse the code in the explorers to also detectcmd_{get,sum}
for local execution.