Compare commits

..

8 Commits

View File

@ -64,7 +64,7 @@ pst() {
return 1 return 1
fi fi
curl -F "file=@$file" -H "X-Auth: $(cat ~/.key)" http://localhost:3235 curl -F "file=@$file" -H "X-Auth: $(cat ~/.key)" https://paste.jabuxas.xyz
if [[ -p /dev/stdin ]]; then if [[ -p /dev/stdin ]]; then
rm "$file" rm "$file"
@ -88,7 +88,7 @@ function pst
set file "$argv[1]" set file "$argv[1]"
end end
curl -F "file=@$file" -H "X-Auth: $(cat ~/.key)" http://localhost:3235 curl -F "file=@$file" -H "X-Auth: $(cat ~/.key)" https://paste.jabuxas.xyz
if command test -p /dev/stdin if command test -p /dev/stdin
rm "$file" rm "$file"
@ -129,5 +129,4 @@ end
- [x] add file extension in its name - [x] add file extension in its name
- [x] login prompt when accessing /tree - [x] login prompt when accessing /tree
- [x] home page - [x] home page
- [x] custom file displaying!!
- [ ] add rate limits - [ ] add rate limits