From 0faf1b16428cd172e1b1ca5b08fcafcbd243bb55 Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Fri, 21 Feb 2025 03:49:53 +0400 Subject: [PATCH] =?UTF-8?q?possibilit=C3=A9=20d'ignorer=20les=20fichiers?= =?UTF-8?q?=20defaults?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- runphp/runphp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/runphp/runphp b/runphp/runphp index e8e8367..1a03b5f 100755 --- a/runphp/runphp +++ b/runphp/runphp @@ -276,12 +276,15 @@ function host_init_env() { ;; esac } - envs=( - /etc/default/dkbuild - ~/etc/default.${HOSTNAME%%.*}/dkbuild - ~/etc/default/dkbuild - ~/.dkbuild.env - ) + envs=() + if [ -z "$RUNPHP_IGNORE_DEFAULTS" ]; then + envs+=( + /etc/default/dkbuild + ~/etc/default.${HOSTNAME%%.*}/dkbuild + ~/etc/default/dkbuild + ) + fi + envs+=(~/.dkbuild.env) for env in "${envs[@]}"; do [ -f "$env" ] && source "$env" done