diff options
Diffstat (limited to 'ar')
| -rwxr-xr-x | ar/.local/bin/hugow | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ar/.local/bin/hugow b/ar/.local/bin/hugow index b96cc93..0460174 100755 --- a/ar/.local/bin/hugow +++ b/ar/.local/bin/hugow @@ -58,7 +58,11 @@ fi if [ -n "${1-}" ]; then new="$repodir/content/recordings/$1" - [ -f "$new" ] && rsync -az --update "$new" "$server:$dest" + if [ -f "$new" ]; then + rsync -az --update "$new" "$server:$dest" + elif [ -d "$new" ]; then + rsync -az --update "$new/" "$server:$dest$(basename "$new")/" + fi fi ssh "$THESIAH_SERVER" "chmod 644 $dest/index.html" |
