Explorar el Código

Allow overriding the "remote filename"

master
JustAnotherArchivist hace 5 años
padre
commit
4a1a9a10e0
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. +4
    -1
      ix.io-upload

+ 4
- 1
ix.io-upload Ver fichero

@@ -1,2 +1,5 @@
#!/bin/bash
echo "$(curl -sF "f:1=@${1}" http://ix.io/)+/${1}" | sed 's,#,%23,g'
localfile="$1"
remotefile="${2:-${1}}"
remotefile="${remotefile##*/}"
echo "$(curl -sF "f:1=@${localfile}" http://ix.io/)+/${remotefile}" | sed 's,#,%23,g'

Cargando…
Cancelar
Guardar