updates & fixes to some scripts

This commit is contained in:
tavo-wasd 2024-07-07 00:09:39 -06:00
parent 93df183c90
commit 4580213e61
4 changed files with 18 additions and 8 deletions

View file

@ -13,5 +13,5 @@ done
[ "$total" = 0 ] && exit
printf "󰊢 $total"
echo "$total"
kill -54 "$(pidof dwmblocks)"

View file

@ -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"
[ -d "${FILE%.zip}" ] &&
printf 'Remove created %s? [y/n]: ' "$FILE" && read p
[ "$p" = "y" ] && rm -rf "$FILE"
exit 0

View file

@ -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"
printf 'Remove created %s? [y/n]: ' "$FILE" && read p
[ "$p" = "y" ] && rm -rf "$FILE"
exit 0

View file

@ -25,4 +25,4 @@ case 1 in
esac
# Print and notify
echo " $bar"
echo "󰍬 $bar"