From d5da5d3e5e5ba376f0972fb60b1e3d5c8716deed Mon Sep 17 00:00:00 2001 From: mahmutov Date: Thu, 4 Aug 2016 07:09:23 +0000 Subject: [PATCH] mps.otokurlisteden --- bin/mps | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/bin/mps b/bin/mps index 733d6129f..e2b94476b 100755 --- a/bin/mps +++ b/bin/mps @@ -244,14 +244,21 @@ paket_kur_oto(){ } paket_kur_oto_zorla(){ - local kpkt pkt pak - for kpkt in `cat $1`;do + 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" mps -k "$pak" done done + rm -rf otokur.list } paket_kur_liste(){