skonfig / base

explorer and types for general use
GNU General Public License v3.0
4 stars 4 forks source link

__download: reduce code duplication, replace `__remote_copy` #91

Closed sideeffect42 closed 1 year ago

sideeffect42 commented 1 year ago

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.