瀏覽代碼

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…
取消
儲存