Hacker News new | ask | show | jobs
by kordless 4306 days ago
I was trying to do something like this to make it a bit easier to use:

#!/bin/bash

X=$(cd $(dirname "$1") && pwd -P)/$(basename "$1")

curl -F "file=$X" http://curl.io/$2

1 comments

Did you really name a variable "X"?
Guilty.