Преглед изворни кода

Allow overriding the "remote filename"

master
JustAnotherArchivist пре 5 година
родитељ
комит
4a1a9a10e0
1 измењених фајлова са 4 додато и 1 уклоњено
  1. +4
    -1
      ix.io-upload

+ 4
- 1
ix.io-upload Прегледај датотеку

@@ -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'

Loading…
Откажи
Сачувај