Fucking broken garbage hg-git is hosed for https mercurial urls and I have no idea why
author |
Steve Losh <steve@stevelosh.com> |
date |
Sat, 02 Feb 2019 15:58:34 -0500 |
parents |
f14a899254c7 |
children |
a47b90b61621 |
#!/usr/bin/env bash
set -euo pipefail
PASTE_SHA=$(ssh paste.stevelosh.com 'cat > tmppaste && sha1sum tmppaste | cut -d" " -f1 && mv tmppaste /var/www/paste/`sha1sum tmppaste | cut -d" " -f1`')
echo -n "http://paste.stevelosh.com/$PASTE_SHA" | pbcopy
echo -n 'Copied '
tput bold
pbpaste
tput sgr0
echo ' to the clipboard.'