Remove some random slashes from the URLs.

This commit is contained in:
Rudolf Polzer 2022-01-31 12:32:28 -08:00
parent 61b8b2ba39
commit 1007baeac7

View File

@ -272,10 +272,10 @@ screenshotthemap()
) 2>&1 | tee ~/.xonotic/data/autoscreenshot.log
good=false
if mv ~/.xonotic/data/screenshots "$M-$blobhash"; then
ss2spam "$M" "$url/$M-$blobhash/" "$REFNAME" "$commithash" 0 > ~/.xonotic/data/"$M.ircss"
ss2spam "$M" "$url$M-$blobhash/" "$REFNAME" "$commithash" 0 > ~/.xonotic/data/"$M.ircss"
else
mkdir "$M-$blobhash"
ss2spam "$M" "$url/$M-$blobhash/" "$REFNAME" "$commithash" 1 > ~/.xonotic/data/"$M.ircss"
ss2spam "$M" "$url$M-$blobhash/" "$REFNAME" "$commithash" 1 > ~/.xonotic/data/"$M.ircss"
fi
mv ~/.xonotic/data/"$M.ircss" "$M-$blobhash"/
mv ~/.xonotic/data/autoscreenshot.log "$M-$blobhash"/