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.
This commit is contained in:
14
.local/bin/unzip-all
Executable file
14
.local/bin/unzip-all
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user