mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2024-12-25 11:50:18 +01:00
Fix syntax for example Fish alias in Readme. (#159)
Fish alias/function example shown for using wget in the Readme uses Bash-style command substitution (with $) rather than Fish-style (no $) and will throw an error when used.
This commit is contained in:
parent
fb32a2a85a
commit
d9a369f1c3
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ funcsave transfer
|
|||
```bash
|
||||
function transfer --description 'Upload a file to transfer.sh'
|
||||
if [ $argv[1] ]
|
||||
wget -t 1 -qO - --method=PUT --body-file="$argv[1]" --header="Content-Type: $(file -b --mime-type $argv[1])" https://transfer.sh/$(basename $argv[1])
|
||||
wget -t 1 -qO - --method=PUT --body-file="$argv[1]" --header="Content-Type: (file -b --mime-type $argv[1])" https://transfer.sh/(basename $argv[1])
|
||||
else
|
||||
echo 'usage: transfer FILE_TO_TRANSFER'
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue