From cbf1af0fae6eb111af2fbea663542fc9efc1060c Mon Sep 17 00:00:00 2001 From: milisbir Date: Wed, 21 Feb 2018 18:20:28 +0200 Subject: [PATCH] mps --- bin/mps | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/mps b/bin/mps index 359a28126..c1e7d520a 100755 --- a/bin/mps +++ b/bin/mps @@ -741,6 +741,7 @@ gerekleri_listele(){ [ $1 ] && _paket=$1 || hata_olustu "_talimat_bulunamadi" _pkvt="" [ "$2" = "--kurulu_atla" ] && _pkvt="$VT" + #echo "arama konum: $_konum" echo $_paket | awk -v arama_konum="$_konum" -v PKVT="$_pkvt" \ ''' function gerekbul(paket,gerekler) { @@ -785,11 +786,17 @@ gerekleri_listele(){ function talimat_bul(ara){ cmd= "find " arama_konum " -name " ara " | head -n1 " + _bulundu=0 while ( ( cmd | getline talimatyol ) > 0 ) { - return talimatyol "/talimat" + _bulundu=1 break } close(cmd) + if ( _bulundu == 0 ) { + print ara " talimatı bulunamadı"; + exit 1 + } + return talimatyol "/talimat" }