Search for zstd in home directory

This is possibly a solution for #2.
This commit is contained in:
Rien Maertens
2020-03-12 08:29:19 +01:00
parent cf96c489eb
commit d0c5ffe9e1
3 changed files with 3 additions and 3 deletions

View File

@ -28,8 +28,8 @@ fallback_to_gzip() {
# check if zstd is present on remarkable
if ssh "$ssh_host" "[ -f /opt/bin/zstd ]"; then
compress="/opt/bin/zstd"
elif ssh "$ssh_host" "[ -f /home/root/zstd ]"; then
compress="/home/root/zstd"
elif ssh "$ssh_host" "[ -f ~/zstd ]"; then
compress="~/zstd"
fi
# gracefully degrade to gzip if zstd is not present on remarkable or host