Sorry, little mistake in my previous comment, it's not: sed -i '/^$remoteroot =~.*/i $remoteroot =~ s|/?$|/| ;' /usr/bin/debmirror But: sed -i '/^$remoteroot =~.*/i $remoteroot =~ s|\/?$|\/| ;' /usr/bin/debmirror
Sorry, little mistake in my previous comment,
it's not:
sed -i '/^$remoteroot =~.*/i $remoteroot =~ s|/?$|/| ;' /usr/bin/debmirror
But:
sed -i '/^$remoteroot =~.*/i $remoteroot =~ s|\/?$|\/| ;' /usr/bin/debmirror