From 7293112c477758b10fdb951a0dcef80ffa54e156 Mon Sep 17 00:00:00 2001 From: a-sansara Date: Fri, 22 Nov 2019 15:20:08 +0100 Subject: [PATCH] upgrade dependency echo to 1.2 --- bes.ini | 2 +- src/install.sh | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bes.ini b/bes.ini index d958233..87072d4 100644 --- a/bes.ini +++ b/bes.ini @@ -10,4 +10,4 @@ description = "simple bash bes installer" keywords = "bash, bes, install" [require] -bes.echo = master +bes.echo = 1.2 diff --git a/src/install.sh b/src/install.sh index 7dd84c2..2c90c7a 100644 --- a/src/install.sh +++ b/src/install.sh @@ -13,9 +13,9 @@ function bes.install () local url=${2} local path=${3:-/usr/local/bin} local done=1 - bes.echo.title "Installing $app ${Coff}in" "$path" + echo.title "Installing $app ${Coff}in" "$path" if [ -z "$app" ] || [ -s "$url" ]; then - bes.echo.error "in bes.install : \$app '$app' & \$url '$url' are required" 1 + echo.error "in bes.install : \$app '$app' & \$url '$url' are required" 1 fi if [ -f "./$app" ]; then rm ./$app @@ -26,12 +26,12 @@ function bes.install () if [ -d $path ]; then sudo mv ./$app $path/$app local done=$? - bes.echo.state $done + echo.state $done else - bes.echo.error "install directory do not exists : ${Cspe}$path" + echo.error "install directory do not exists : ${Cspe}$path" fi else - bes.echo.error "can not download latest version of app $app. please check url : $url" + echo.error "can not download latest version of app $app. please check url : $url" fi - bes.echo.rs $done + echo.rs $done }