small fixes
This commit is contained in:
parent
488c59f667
commit
ebc0ea5d84
@ -145,6 +145,7 @@ def list_files(snapshot, path):
|
|||||||
@click.option('snapshot', '--snapshot', '-s', envvar='SNAPSHOT', default='latest')
|
@click.option('snapshot', '--snapshot', '-s', envvar='SNAPSHOT', default='latest')
|
||||||
@click.option('path', '--path', '-p', envvar='INCLUDE_PATH')
|
@click.option('path', '--path', '-p', envvar='INCLUDE_PATH')
|
||||||
def download(snapshot, path):
|
def download(snapshot, path):
|
||||||
|
path = path.removesuffix('/')
|
||||||
files = list_files(snapshot, path)
|
files = list_files(snapshot, path)
|
||||||
filetype = [f.get('type') for f in files if f.get('path') == path][0]
|
filetype = [f.get('type') for f in files if f.get('path') == path][0]
|
||||||
cmd = restic.cat.base_command() + ['dump', snapshot, path]
|
cmd = restic.cat.base_command() + ['dump', snapshot, path]
|
||||||
|
@ -5,7 +5,6 @@ set -e -o pipefail
|
|||||||
apk add --upgrade --no-cache \
|
apk add --upgrade --no-cache \
|
||||||
restic=0.15.2-r3 \
|
restic=0.15.2-r3 \
|
||||||
bash=5.2.15-r5 \
|
bash=5.2.15-r5 \
|
||||||
restic=0.15.2-r2 \
|
|
||||||
python3=3.11.5-r0 \
|
python3=3.11.5-r0 \
|
||||||
py3-pip=23.1.2-r0
|
py3-pip=23.1.2-r0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user