app-misc/anomen-toolset - unzipd
[anomen-overlay.git] / app-misc / anomen-toolset / files / unzipd
blob1f82437f741bcf200577644a754b55dde787a793
1 #!/bin/sh
3 if test '!' -f "$1" ; then
4 echo zip filename expected
5 exit 1
6 fi
8 F="$1"
9 D=${F%.zip}
11 echo $D
13 if test -e "$D" ; then
14 echo "Target \"$D\" already exists"
15 exit 2
18 exec unzip -d "$D" "$F"