mps-harici-kur

This commit is contained in:
milisarge 2017-06-13 23:25:24 +03:00
parent f6d05d816d
commit dea0ca3170

21
bin/mps
View file

@ -1604,6 +1604,7 @@ if [ `id -u` = 0 ] ; then
if [ ! -z "$pkontrol" -a "$pkontrol" != "" ]; then if [ ! -z "$pkontrol" -a "$pkontrol" != "" ]; then
paketad=`echo "$2" | cut -d'#' -f1` paketad=`echo "$2" | cut -d'#' -f1`
kkont=`kurulu_kontrol "$paketad"` kkont=`kurulu_kontrol "$paketad"`
if [ "$kkont" = "degil" ];then if [ "$kkont" = "degil" ];then
icerik_ekle "$2" icerik_ekle "$2"
elif [ "$kkont" = "kurulu" ];then elif [ "$kkont" = "kurulu" ];then
@ -1624,17 +1625,15 @@ if [ `id -u` = 0 ] ; then
icerik_ekle "$2" icerik_ekle "$2"
fi fi
else else
if [ "$tekrarkur" = "evet" ];then while true; do
while true; do ryaz 31 "$2 paketi talimatname dışı.Yine de kurulsun mu? (kokdizin=$kokdizin) "
ryaz 31 "$2 paketi talimatname dışı.Yine de kurulsun mu? (kokdizin=$kokdizin) " read -p "e veya h -> " eh
read -p "e veya h -> " eh case $eh in
case $eh in [Ee]* ) icerik_ekle "$2"; break;;
[Ee]* ) icerik_ekle "$2"; break;; [Hh]* ) break;;
[Hh]* ) break;; * ) echo "e veya h";;
* ) echo "e veya h";; esac
esac done
done
fi
fi fi
else else
ryaz 31 "yerelde mps paketi bulunamadı." ryaz 31 "yerelde mps paketi bulunamadı."