about summary refs log tree commit diff
path: root/ix
blob: 51741d8da4f315cd593b9f35ced281d5eb2cecd4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

url="http://ix.io"
form="f:1="

if [ -t 0 ] && [ -n "${1}" ]; then
    form="${form}@${1}"
else
    form="${form}<-"
fi

curl --form "${form}" "${url}"

Consider giving Nix/NixOS a try! <3