Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (16 sloc) 0.522 kb
#!/usr/bin/env bash
echo "Processing: remote - all"
ssh rvm@rvm.io -C ./rvm-list-binary.sh remote | sort > config/remote
for type in md5 sha512
do
ssh rvm@rvm.io ./rvm-list-binary.sh $type | while IFS="=" read name value
do
echo "Processing: $type - $name"
if grep "^$name=" config/$type >/dev/null
then sed -i'' 's#^'"$name"'=.*$#'"$name=$value"'#' config/$type
else echo "$name=$value" >> config/$type
fi
done
sort config/$type > config/$type.new
mv -f config/$type.new config/$type
done
Jump to Line
Something went wrong with that request. Please try again.