diff options
author | kaa <kaa@laptosh.my.domain> | 2023-06-23 11:19:51 -0700 |
---|---|---|
committer | kaa <kaa@laptosh.my.domain> | 2023-06-23 11:19:51 -0700 |
commit | 8828e75a9ee7a5408ad00ad17e9878a2740cc866 (patch) | |
tree | bd60b53fb9896316ebc9928a30e0b0806b1c64ae /various/dirup |
"Initial."
Diffstat (limited to 'various/dirup')
-rwxr-xr-x | various/dirup | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/various/dirup b/various/dirup new file mode 100755 index 0000000..20938d7 --- /dev/null +++ b/various/dirup @@ -0,0 +1,9 @@ +#!/bin/sh + +uname="" +psswd="" +rdir="${1:-/}" +fn="${2:-$PWD}" + +echo $rdir/$fn +curl -F "$rdir/$2=@$2" "https://$uname:$psswd@neocities.org/api/upload" |