Y
Hacker News
new
|
ask
|
show
|
jobs
by
kordless
4353 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
4352 days ago
Did you really name a variable "X"?
link
kordless
4351 days ago
Guilty.
link