update bes.install dependency to 1.4
This commit is contained in:
parent
8da17aa8c5
commit
e6cefa543a
4
bes.ini
4
bes.ini
|
@ -1,7 +1,7 @@
|
||||||
[project]
|
[project]
|
||||||
vendor = bes
|
vendor = bes
|
||||||
name = config
|
name = config
|
||||||
version = 1.2
|
version = 1.3
|
||||||
license = "GNU GPL v3"
|
license = "GNU GPL v3"
|
||||||
author = a-Sansara
|
author = a-Sansara
|
||||||
type = application
|
type = application
|
||||||
|
@ -10,4 +10,4 @@ description = "bes-config is a small bash bes config display application"
|
||||||
keywords = "bash, bes, config"
|
keywords = "bash, bes, config"
|
||||||
|
|
||||||
[require]
|
[require]
|
||||||
bes.install = 1.2
|
bes.install = 1.4
|
||||||
|
|
12
dist/bes-config
vendored
12
dist/bes-config
vendored
|
@ -245,7 +245,7 @@ function echo.app ()
|
||||||
local msg=${1:-''}
|
local msg=${1:-''}
|
||||||
local version=${2:-''}
|
local version=${2:-''}
|
||||||
local author=${3:-'a-Sansara'}
|
local author=${3:-'a-Sansara'}
|
||||||
local license=${3:-'GNU GPL v3'}
|
local license=${4:-'GNU GPL v3'}
|
||||||
if [ ! -z "$2" ]; then
|
if [ ! -z "$2" ]; then
|
||||||
msg="$msg ${Cval}v$version"
|
msg="$msg ${Cval}v$version"
|
||||||
fi
|
fi
|
||||||
|
@ -566,6 +566,7 @@ function bes.install ()
|
||||||
local app=${1}
|
local app=${1}
|
||||||
local url=${2}
|
local url=${2}
|
||||||
local path=${3:-/usr/local/bin}
|
local path=${3:-/usr/local/bin}
|
||||||
|
local inst=${4:-}
|
||||||
local done=1
|
local done=1
|
||||||
echo.title "Installing $app ${Coff}in" "$path"
|
echo.title "Installing $app ${Coff}in" "$path"
|
||||||
if [ -z "$app" ] || [ -s "$url" ]; then
|
if [ -z "$app" ] || [ -s "$url" ]; then
|
||||||
|
@ -584,8 +585,13 @@ function bes.install ()
|
||||||
else
|
else
|
||||||
echo.error "install directory do not exists : ${Cspe}$path"
|
echo.error "install directory do not exists : ${Cspe}$path"
|
||||||
fi
|
fi
|
||||||
|
if [ ! -z "$inst" ]; then
|
||||||
|
if bes.exists "$inst"; then
|
||||||
|
$inst
|
||||||
|
fi
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
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
|
fi
|
||||||
echo.rs $done
|
echo.rs $done
|
||||||
}
|
}
|
||||||
|
@ -651,7 +657,7 @@ bes.boot
|
||||||
# @date 2017-06-16 04:38:52 CET
|
# @date 2017-06-16 04:38:52 CET
|
||||||
#
|
#
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
BES_VERSION=1.2
|
BES_VERSION=1.3
|
||||||
BES_NAME="bes-config"
|
BES_NAME="bes-config"
|
||||||
BES_URL="https://git.pluie.org/meta-tech/$BES_NAME/raw/latest/dist/$BES_NAME"
|
BES_URL="https://git.pluie.org/meta-tech/$BES_NAME/raw/latest/dist/$BES_NAME"
|
||||||
APP_DIR=$(pwd)
|
APP_DIR=$(pwd)
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# @date 2017-06-16 04:38:52 CET
|
# @date 2017-06-16 04:38:52 CET
|
||||||
#
|
#
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
BES_VERSION=1.2
|
BES_VERSION=1.3
|
||||||
BES_NAME="bes-config"
|
BES_NAME="bes-config"
|
||||||
BES_URL="https://git.pluie.org/meta-tech/$BES_NAME/raw/latest/dist/$BES_NAME"
|
BES_URL="https://git.pluie.org/meta-tech/$BES_NAME/raw/latest/dist/$BES_NAME"
|
||||||
APP_DIR=$(pwd)
|
APP_DIR=$(pwd)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user