mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2024-11-23 12:40:19 +01:00
Improve Windows support in README following CR
This commit is contained in:
parent
9a6089289d
commit
2e3d5594a4
1 changed files with 4 additions and 5 deletions
|
@ -40,11 +40,10 @@ Download [curl](https://curl.haxx.se/download.html). Then, put a file called tra
|
||||||
```
|
```
|
||||||
@echo off
|
@echo off
|
||||||
setlocal
|
setlocal
|
||||||
:: write to output to tmpfile because of progress bar
|
:: use env vars to pass names to PS, to avoid escaping issues
|
||||||
set tmpfile=%TEMP%\~%~nx1.transfer
|
set FN=%~nx1
|
||||||
curl --progress-bar --upload-file %1 https://transfer.sh/%~nx1 >> %tmpfile%
|
set FULL=%1
|
||||||
type %tmpfile%
|
powershell -noprofile -command "$(Invoke-Webrequest -Method put -Infile $Env:FULL https://transfer.sh/$Env:FN).Content"
|
||||||
del %tmpfile%
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
Loading…
Reference in a new issue