This commit is contained in:
milisbir 2017-10-11 05:34:25 +03:00
parent 63dcadabd3
commit d00bccf5e8
1 changed files with 2 additions and 2 deletions

View File

@ -390,7 +390,7 @@ anatalimat_bul(){
while IFS= read -r -d $'\0'; do
_bulunan+=("$REPLY")
done < <(find $anatalimatname -name ${_apaket} -print0)
if [ ${#_bulunan[@]} > 1 ];then echo "$(date +'%F %T') ${_apaket} $_talimat_sayisi_fazla" >> $LOGDIZIN/mps-hata.log;fi
if [ ${#_bulunan[@]} -gt 1 ];then echo "$(date +'%F %T') ${_apaket} $_talimat_sayisi_fazla" >> $LOGDIZIN/mps-hata.log;fi
if [ ${_bulunan[0]} ] ; then
if [ -f "${_bulunan[0]}/talimat" ];then
echo "${_bulunan[0]}"
@ -2001,7 +2001,7 @@ agdan_kur(){
surumler=$(ls "$paketdepo$1#"* | wc -l)
if [ $surumler = 1 ];then
icerik_ekle $(ls "$paketdepo$1#"*)
elif [ $surumler > 1 ];then
elif [ $surumler -gt 1 ];then
ryaz 31 "$1 paketinin birden fazla sürümü var!"
kurulacak_guncel_paket=$(ls -1t "$paketdepo$1#"* | head -1)
ryaz 32 "$kurulacak_guncel_paket sürümü kuruluyor"