diff --git a/binr/r2pm/r2pm b/binr/r2pm/r2pm index c30e56f2d5..ddc183060c 100755 --- a/binr/r2pm/r2pm +++ b/binr/r2pm/r2pm @@ -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