release can be directories, too

This commit is contained in:
Nico Schottelius 2021-04-01 13:55:40 +02:00
parent 31d2387412
commit 2f33a5fd8b
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ fi
bfile="$(basename "$file")"
scp "$file" "${host}:${dir}"
scp -r "$file" "${host}:${dir}"
ssh "$host" "chmod a+r \"$dir/$bfile\""
if [ "$delete_after" ]; then