Files
.dotfiles/.local/bin/unzip-all
Quinn a50ead749a move xdg directories to the default location.
a lot of applications seem to hardcode this location, so it's better to
have something default, or default-adjasoned.
2025-11-19 10:39:51 +01:00

15 lines
237 B
Bash
Executable File

#!/usr/bin/sh
if [ -z ${var+2} ]; then
printf "\033[91mno parameters were given!\033[0m\n"
fi
for i in $2; do
readonly fname
fname="$(basename "$i" .*)"
mkdir "$fname"
cd "$fname" || return 1
unzip "../$i"
cd - || return 1
done