updates & fixes to some scripts
This commit is contained in:
parent
93df183c90
commit
4580213e61
4 changed files with 18 additions and 8 deletions
|
@ -13,5 +13,5 @@ done
|
||||||
|
|
||||||
[ "$total" = 0 ] && exit
|
[ "$total" = 0 ] && exit
|
||||||
|
|
||||||
printf " $total"
|
echo "$total"
|
||||||
kill -54 "$(pidof dwmblocks)"
|
kill -54 "$(pidof dwmblocks)"
|
||||||
|
|
|
@ -4,8 +4,14 @@ NULL_PTR="https://0x0.st"
|
||||||
LOC="$1"
|
LOC="$1"
|
||||||
FILE="$LOC"
|
FILE="$LOC"
|
||||||
[ -d "$FILE" ] &&
|
[ -d "$FILE" ] &&
|
||||||
FILE="${FILE%%/}.zip" &&
|
FILE="${FILE%/}.zip" &&
|
||||||
zip -r "$FILE" "$LOC"
|
zip -r "$FILE" "$LOC"
|
||||||
|
|
||||||
curl -F "file=@$FILE" "$NULL_PTR"
|
curl -F "file=@$FILE" "$NULL_PTR"
|
||||||
[ -d "$FILE" ] && rm -rf "$FILE"
|
|
||||||
|
[ -d "${FILE%.zip}" ] &&
|
||||||
|
printf 'Remove created %s? [y/n]: ' "$FILE" && read p
|
||||||
|
|
||||||
|
[ "$p" = "y" ] && rm -rf "$FILE"
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
|
@ -2,9 +2,13 @@
|
||||||
NULL_PTR="https://0x0.st"
|
NULL_PTR="https://0x0.st"
|
||||||
|
|
||||||
LOC="$1"
|
LOC="$1"
|
||||||
FILE="${LOC%%/}.zip"
|
FILE="${LOC%/}.zip"
|
||||||
zip -r "$FILE" "$LOC"
|
zip -r "$FILE" "$LOC"
|
||||||
zipcloak "$FILE"
|
zipcloak "$FILE"
|
||||||
|
|
||||||
curl -F "file=@$FILE" "$NULL_PTR"
|
curl -F "file=@$FILE" "$NULL_PTR"
|
||||||
rm -rf "$FILE"
|
|
||||||
|
printf 'Remove created %s? [y/n]: ' "$FILE" && read p
|
||||||
|
[ "$p" = "y" ] && rm -rf "$FILE"
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
|
@ -25,4 +25,4 @@ case 1 in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Print and notify
|
# Print and notify
|
||||||
echo " $bar"
|
echo " $bar"
|
||||||
|
|
Loading…
Reference in a new issue