repo.or.cz
/
anomen-overlay.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
app-misc/anomen-toolset - unzipd
[anomen-overlay.git]
/
app-misc
/
anomen-toolset
/
files
/
unzipd
blob
1f82437f741bcf200577644a754b55dde787a793
1
#!/bin/sh
2
3
if
test
'!'
-f
"
$1
"
;
then
4
echo
zip
filename expected
5
exit
1
6
fi
7
8
F
=
"
$1
"
9
D
=
${F%.zip}
10
11
echo
$D
12
13
if
test -e
"
$D
"
;
then
14
echo
"Target
\"
$D
\"
already exists"
15
exit
2
16
fi
17
18
exec
unzip
-d
"
$D
"
"
$F
"