Permalink
Browse files

Support local xz file

  • Loading branch information...
1 parent 3e41654 commit bcc0941f8f9db16564eb0f7e0cf16a380338a9ac @d3m3vilurr d3m3vilurr committed Dec 17, 2016
Showing with 5 additions and 1 deletion.
  1. +5 −1 vdpm
View
@@ -15,7 +15,11 @@ error() {
install_pkg() {
echo "Installing $1..."
- curl http://dl.vitasdk.org/$1.tar.xz | tar -C $VITASDK/arm-vita-eabi -Jxvf -
+ if [ -f $1 ]; then
+ tar -C $VITASDK/arm-vita-eabi -Jxvf $1
+ else
+ curl http://dl.vitasdk.org/$1.tar.xz | tar -C $VITASDK/arm-vita-eabi -Jxvf -
+ fi
echo "success"
}

0 comments on commit bcc0941

Please sign in to comment.