From 50f128c3d13250d6691d6679a647dad8fef45315 Mon Sep 17 00:00:00 2001 From: milisbir Date: Mon, 1 Jan 2018 23:22:58 +0200 Subject: [PATCH] mps-fonks --- bin/mps | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/bin/mps b/bin/mps index 44dfaf900..e2d55b538 100755 --- a/bin/mps +++ b/bin/mps @@ -3,7 +3,7 @@ if [ -f /etc/mps.conf ];then . /etc/mps.conf fi -. /root/bin/fonks.sh + versiyon="1.1.7 Milis Paket Sistemi" iletisim="milisarge@gmail.com" paketdepo="/depo/paketler/" @@ -1522,6 +1522,18 @@ dosya_karsilastir(){ fi } +# renkli mesaj +ryaz() { + [ -z "$1" ] && return + : ${color=$1} + shift + case $color in + 0*) echo -e "\\033[${color:-38}m$@\\033[39m";; + *) echo -e "\\033[1;${color:-38}m$@\\033[0;39m";; + esac + unset color +} + log_analiz(){ local zaman durum zaman=$1