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
|
||||
|
||||
printf " $total"
|
||||
echo "$total"
|
||||
kill -54 "$(pidof dwmblocks)"
|
||||
|
|
|
@ -4,8 +4,14 @@ NULL_PTR="https://0x0.st"
|
|||
LOC="$1"
|
||||
FILE="$LOC"
|
||||
[ -d "$FILE" ] &&
|
||||
FILE="${FILE%%/}.zip" &&
|
||||
FILE="${FILE%/}.zip" &&
|
||||
zip -r "$FILE" "$LOC"
|
||||
|
||||
curl -F"file=@$FILE" "$NULL_PTR"
|
||||
[ -d "$FILE" ] && rm -rf "$FILE"
|
||||
curl -F "file=@$FILE" "$NULL_PTR"
|
||||
|
||||
[ -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"
|
||||
|
||||
LOC="$1"
|
||||
FILE="${LOC%%/}.zip"
|
||||
FILE="${LOC%/}.zip"
|
||||
zip -r "$FILE" "$LOC"
|
||||
zipcloak "$FILE"
|
||||
|
||||
curl -F"file=@$FILE" "$NULL_PTR"
|
||||
rm -rf "$FILE"
|
||||
curl -F "file=@$FILE" "$NULL_PTR"
|
||||
|
||||
printf 'Remove created %s? [y/n]: ' "$FILE" && read p
|
||||
[ "$p" = "y" ] && rm -rf "$FILE"
|
||||
|
||||
exit 0
|
||||
|
|
|
@ -25,4 +25,4 @@ case 1 in
|
|||
esac
|
||||
|
||||
# Print and notify
|
||||
echo " $bar"
|
||||
echo " $bar"
|
||||
|
|
Loading…
Reference in a new issue