#!/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
