From 08889557565d5b633e216c6bb7c40933be221781 Mon Sep 17 00:00:00 2001 From: Tony Tkacik Date: Wed, 21 Jun 2017 15:05:26 +0200 Subject: [PATCH] Removed unnecessary variables. --- inc/nux-base.inc.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/inc/nux-base.inc.sh b/inc/nux-base.inc.sh index fec158c..037b9c6 100644 --- a/inc/nux-base.inc.sh +++ b/inc/nux-base.inc.sh @@ -149,6 +149,11 @@ function nux.check.function { return 1 } +function nux.check.nuxenv.file { + path=$(realpath -Lms "$1") + [[ "$path" =~ "^$NUX_ENV_DIR" ]] +} + function nux.check.exec { local binary=$1; test -n "$(which "$binary")" @@ -205,7 +210,3 @@ function nux.url.parse { -re "s/(([^:\/]*):\/\/)?(([^@\/:]*)@)?([^:\/]+)(:([0-9]+))?(\/(.*))?/$format/g" } - -NUX_ENV_MACHINE=/usr/ -NUX_ENV_MACHINE_LOCAL=/usr/local/ -NUX_ENV_USER_LOCAL=$HOME/.local