diff options
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" |