From 0a93c88fc427d084278b1f6d4a828088a2fd65ac Mon Sep 17 00:00:00 2001 From: milisman Date: Wed, 20 Apr 2016 22:48:30 +0000 Subject: [PATCH] mps --- bin/mps | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/mps b/bin/mps index 6648abccf..3cf787449 100755 --- a/bin/mps +++ b/bin/mps @@ -738,8 +738,10 @@ if [ "$ikaynak" = "ag" ]; then #if wget -P /tmp -q "$sunucu$cpaket" > /dev/null; then if [ $? -eq 0 ]; then wget -nc -P "$paketdepo" "$sunucu$cpaket" - ekontdeg=`cat "$paketdepo""paket.vt" | grep "^$2 " | cut -d' ' -f2` - mkontdeg=`md5sum $pkt | cut -d' ' -f1` + if [ -f "$paketde""popaket.vt" ];then + ekontdeg=`cat "$paketdepo""paket.vt" | grep "^$2 " | cut -d' ' -f2` + mkontdeg=`md5sum $pkt | cut -d' ' -f1` + fi if [ "$ekontdeg" != "$mkontdeg" ];then rm -f $pkt wget -nc -P "$paketdepo" "$sunucu$cpaket"