소스 검색

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'

불러오는 중...
취소
저장