mirror of
https://github.com/radareorg/radare2.git
synced 2024-10-07 02:23:58 +00:00
Honor the 2nd arg of R2PM_TGZ with ZIP files ##r2pm
This commit is contained in:
parent
2da973ed24
commit
69e13b5a51
@ -290,7 +290,11 @@ R2PM_TGZ() {
|
||||
elif [ "`echo ${URL} | grep -e .txz -e tar`" ]; then
|
||||
tar xvf "${TARBALL}"
|
||||
elif [ "`echo ${URL} | grep -e .zip`" ]; then
|
||||
unzip -o "${TARBALL}"
|
||||
if [ -n "$2" ]; then
|
||||
unzip -d "${DIR}" -o "${TARBALL}"
|
||||
else
|
||||
unzip "${TARBALL}"
|
||||
fi
|
||||
else
|
||||
echo "Dunno"
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user