ソースを参照

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'

読み込み中…
キャンセル
保存