Mercurial > repo
changeset 11467:380e297c7ae5 draft
<fizzie> sled bin/url//s,hackego.esolangs.org/fshg,hack.esolangs.org/repo,g;s,/index\\.cgi,,
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Sun, 08 Apr 2018 18:06:28 +0100 |
parents | 602a161bac23 |
children | ff752d36eb0e |
files | bin/url |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/url Sun Apr 08 08:07:16 2018 +0100 +++ b/bin/url Sun Apr 08 18:06:28 2018 +0100 @@ -1,7 +1,7 @@ #!/usr/bin/env python import sys, os.path, re, urllib if len(sys.argv) <= 1: - print "https://hackego.esolangs.org/fshg/" + print "https://hack.esolangs.org/repo/" else: f = os.path.abspath(sys.argv[1]) f = re.sub(r"^/+hackenv/", "", f) @@ -10,5 +10,5 @@ elif re.match(r"tmp(?:/|$)",f): print ("https://hackego.esolangs.org/" + urllib.quote(f)) else: - print ("https://hackego.esolangs.org/fshg/index.cgi/file/tip/" + + print ("https://hack.esolangs.org/repo/file/tip/" + urllib.quote(f))