From f8ddd111287ab5abffe38eefa2abf45ce2905503 Mon Sep 17 00:00:00 2001 From: milisbir Date: Wed, 13 Dec 2017 16:26:53 +0200 Subject: [PATCH] mps-html --- bin/mps | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/bin/mps b/bin/mps index 10aa9e77b..3b03771b9 100755 --- a/bin/mps +++ b/bin/mps @@ -327,10 +327,12 @@ paket_bilgi_html(){ while IFS='' read -r satir || [[ -n "$line" ]]; do icerik+="" _sutun_baslik="$(echo $satir | cut -d':' -f1)" - _sutun_deger="$(echo $satir | cut -d':' -f2)" + _sutun_deger="$(echo $satir | cut -d':' -f2-)" icerik+="$_sutun_baslik" - icerik+="$_sutun_deger" - #[ '${_sutun_baslik}' <> '${_sutun_deger}' ] && icerik+="$_sutun_deger" + #icerik+="$_sutun_deger" + if [ "${_sutun_baslik}" != "${_sutun_deger}" ];then + icerik+="$_sutun_deger" + fi icerik+="" done < "$_dosya" icerik+="" @@ -900,7 +902,7 @@ surum_kontrol(){ durum="dusur" fi gun_onay="h" - if [ "$durum" <> "guncel" ];then + if [ "$durum" != "guncel" ];then while true; do printf "\n" ryaz 34 "$_paket sürüm $durum""me işlemi uygulanacak. $ksurum <> $surum ";read -p "e veya h-> " eh @@ -973,7 +975,7 @@ devir_kontrol(){ durum="dusur" fi gun_onay="h" - if [ "$durum" <> "guncel" ];then + if [ "$durum" != "guncel" ];then while true; do printf "\n" ryaz 34 "$_paket devir $durum""me işlemi uygulanacak. $kdevir <> $devir ";read -p "e veya h-> " eh