From 70b10d299b1ebed15bc9a0097539b5529807c235 Mon Sep 17 00:00:00 2001 From: milisbir Date: Sun, 23 Jul 2017 05:09:30 +0300 Subject: [PATCH] mps.guncelleme --- bin/mps | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/bin/mps b/bin/mps index 105b2247c..ff60585ca 100755 --- a/bin/mps +++ b/bin/mps @@ -45,7 +45,11 @@ icerik_ekle(){ paketad=`echo "$1" | cut -d'#' -f1` paketad=`basename $paketad` ryaz 34 $paketad" paketi kuruluyor-> $kokdizin" - tar -C /tmp --extract --file=$1 .PRE 1 2> /tmp/$paketad_pre.log + if [ `type -p bsdtar` ];then + bsdtar -C /tmp --extract --file=$1 .PRE 1 2> /tmp/$paketad_pre.log + else + tar -C /tmp --extract --file=$1 .PRE 1 2> /tmp/$paketad_pre.log + fi #kos-kur kontrolu if [ -f /tmp/.PRE ];then if [ "$kokdizin" == "/" ];then @@ -56,7 +60,11 @@ icerik_ekle(){ rm /tmp/.PRE fi mkdir -p kur.$paketad && - tar xf $1 -C kur.$paketad && + if [ `type -p bsdtar` ];then + bsdtar xf $1 -C kur.$paketad + else + tar xf $1 -C kur.$paketad + fi #istenmeyen yerellerin silinmesi if [ -d kur.$paketad/usr/share/locale ] && [ "$yerelsil" == "evet" ];then for lkl in `ls kur.$paketad/usr/share/locale/`;do