Y
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
dserodio
4305 days ago
Did you really name a variable "X"?
link
kordless
4304 days ago
Guilty.
link