Check /etc/environment exists before using it

This commit is contained in:
Ned Wright 2023-08-17 17:40:22 +00:00
parent 42a31e37b1
commit b3cfd7e9d8

View File

@ -129,7 +129,7 @@ get_setting() # Initials - gs
echo "$gs_setting_value"
}
. "/etc/environment"
[ -f /etc/environment ] && . "/etc/environment"
if [ -n "${CP_ENV_FILESYSTEM}" ] ; then
FILESYSTEM_PATH=$CP_ENV_FILESYSTEM
fi