diff --git a/bin/mps b/bin/mps index 018ddd984..17dd3e3ef 100755 --- a/bin/mps +++ b/bin/mps @@ -890,21 +890,16 @@ paket_kur_oto(){ } paket_kur_oto_zorla(){ - local kpkt pkt pak kliste - if [ "$1" = "-H" ];then - ls *.mps.lz > "otokur.list" - kliste="otokur.list" - else - kliste="$1" - fi - for kpkt in `cat $kliste`;do - for pkt in `ls $kpkt* | cut -d'#' -f1`;do - pak=`ls "$pkt#"*` - paket_sil "$pkt" "evet" - yerelden_kur "$pak" && paket_inkur_oto "$pkt" + local _pak _kliste + [ ! -z $1 ] && _kliste=$1 + for _kpkt in `cat $_kliste`;do + for _pkt in `ls $_kpkt* | cut -d'#' -f1`;do + _pak=`ls "$_pkt#"*` + paket_sil "$_pkt" "evet" + yerelden_kur "$_pak" && paket_inkur_oto "$_pkt" done done - rm -rf otokur.list + rm -rf $_kliste } paket_kur_liste(){ @@ -2919,7 +2914,7 @@ ayarlar() { local templist templist=`mktemp` ls *.mps.lz > $templist - mps -okz -H $templist ;; + paket_kur_oto_zorla $templist ;; -ko|--pkko) paket_kur_oto2 "$2" ;; -kuruld)