!/usr/bin/fish

if test -z $argv[1]

echo directory missing

exit 1

end

set d $argv[1]

if test ! -d $d

echo $d is not a directory

exit 2

end

set imgs $d/*.jpg $d/*.jpeg

rsync --archive --itemize-changes $d/*.pdf.gz $d/*.zip $imgs sibirocobombus:campaignwiki.org/1pdc/$d/