11 lines
199 B
Bash
Executable file
11 lines
199 B
Bash
Executable file
#!/bin/sh
|
|
NULL_PTR="https://0x0.st"
|
|
|
|
LOC="$1"
|
|
FILE="$LOC"
|
|
[ -d "$FILE" ] &&
|
|
FILE="${FILE%%/}.zip" &&
|
|
zip -r "$FILE" "$LOC"
|
|
|
|
curl -F"file=@$FILE" "$NULL_PTR"
|
|
[ -d "$FILE" ] && rm -rf "$FILE"
|