mirror of
https://github.com/tonydamage/nux-env.git
synced 2025-12-11 13:24:28 +01:00
Removed unnecessary variables.
This commit is contained in:
parent
7a53e76d85
commit
0888955756
1 changed files with 5 additions and 4 deletions
|
|
@ -149,6 +149,11 @@ function nux.check.function {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function nux.check.nuxenv.file {
|
||||||
|
path=$(realpath -Lms "$1")
|
||||||
|
[[ "$path" =~ "^$NUX_ENV_DIR" ]]
|
||||||
|
}
|
||||||
|
|
||||||
function nux.check.exec {
|
function nux.check.exec {
|
||||||
local binary=$1;
|
local binary=$1;
|
||||||
test -n "$(which "$binary")"
|
test -n "$(which "$binary")"
|
||||||
|
|
@ -205,7 +210,3 @@ function nux.url.parse {
|
||||||
-re "s/(([^:\/]*):\/\/)?(([^@\/:]*)@)?([^:\/]+)(:([0-9]+))?(\/(.*))?/$format/g"
|
-re "s/(([^:\/]*):\/\/)?(([^@\/:]*)@)?([^:\/]+)(:([0-9]+))?(\/(.*))?/$format/g"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
NUX_ENV_MACHINE=/usr/
|
|
||||||
NUX_ENV_MACHINE_LOCAL=/usr/local/
|
|
||||||
NUX_ENV_USER_LOCAL=$HOME/.local
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue