Navigation Menu

Skip to content

Commit

Permalink
Fix script files to support OSX toolset.
Browse files Browse the repository at this point in the history
  • Loading branch information
gifnksm committed Dec 27, 2015
1 parent 3cad869 commit 6501fef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions etc/download_puzzles.sh
Expand Up @@ -23,10 +23,10 @@ download_java() {

download_nikoli() {
local NUM="$1"
local BASEURL="http://www.nikoli.com/nfp/"
local BASEURL="http://www.nikoli.com/nfp"

curl -s "${BASEURL}/sl-${NUM}.nfp" |
sed 's/&/\n/g' | sed -n 's/^dataQuestion=//p' | ${ETCDIR}/urldecode.py |
sed 's/&/\'$'\n''/g' | sed -n 's/^dataQuestion=//p' | ${ETCDIR}/urldecode.py |
sed 's/+//g'
}

Expand Down
2 changes: 1 addition & 1 deletion etc/urldecode.py
@@ -1,4 +1,4 @@
#!/usr/bin/python2
#!/usr/bin/env python2

import sys, urllib

Expand Down

0 comments on commit 6501fef

Please sign in to comment.