LINUX.ORG.RU

История изменений

Исправление Axon, (текущая версия) :

Rghost?

#!/bin/sh -e

for file in "$@"; do
auth=$(curl -s -b ~/.rghost.cookies -c ~/.rghost.cookies rghost.ru | sed -rn '/id="upload_form"/s/.*value="([^"]+)".*/\1/p')
server=$(curl -s rghost.ru | grep -o 'http://[a-z]*.rghost.ru/files')
curl -# \
-c ~/.rghost.cookies -b ~/.rghost.cookies \
-F authenticity_token="$auth" -F file="@${file}" \
$server | \
grep -o 'http://rghost.ru/[0-9]*'
done

Исходная версия Axon, :

Rghost?