~craftyguy/shellcheck-http

819f4d3007195e6cf451c6839afa9255d2bef674 — Clayton Craft 2 months ago 0014521
scripts/shellcheck: add wrapper thing to send given script to server
1 files changed, 14 insertions(+), 0 deletions(-)

A scripts/shellcheck
A scripts/shellcheck => scripts/shellcheck +14 -0
@@ 0,0 1,14 @@
#!/bin/sh
#****************************************************************************
# A fake 'shellcheck' that just sends whatever you give it to shellcheck-http
#****************************************************************************

# set to the address of shellcheck-http
shellcheck_server="http://localhost"

if [ -z "$1" ]; then
        echo "Usage: shellcheck <path to script>"
        exit 1
fi

curl -F"script=@$1" "$shellcheck_server":8000/upload