From a4572797af4bb5fc35bbe4bf262b96165e7ad517 Mon Sep 17 00:00:00 2001 From: Christoph Date: Thu, 20 May 2021 12:00:11 +0200 Subject: [PATCH] Adjust defaut '.profile' files. --- supported-files/user_templates/all/.profile | 4 +++- supported-files/user_templates/chris/.profile | 5 +++-- supported-files/user_templates/ckubu/.profile | 4 +++- supported-files/user_templates/root/.profile | 4 +++- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/supported-files/user_templates/all/.profile b/supported-files/user_templates/all/.profile index edc7a33..c9df1eb 100644 --- a/supported-files/user_templates/all/.profile +++ b/supported-files/user_templates/all/.profile @@ -26,5 +26,7 @@ fi # as the current directory when leaving the midnight commander # #. /usr/lib/mc/bin/mc.sh -. /usr/share/mc/bin/mc.sh +if [ -f "/usr/share/mc/bin/mc.sh"]; then + source /usr/share/mc/bin/mc.sh +fi diff --git a/supported-files/user_templates/chris/.profile b/supported-files/user_templates/chris/.profile index edc7a33..ecd6faf 100644 --- a/supported-files/user_templates/chris/.profile +++ b/supported-files/user_templates/chris/.profile @@ -26,5 +26,6 @@ fi # as the current directory when leaving the midnight commander # #. /usr/lib/mc/bin/mc.sh -. /usr/share/mc/bin/mc.sh - +if [ -f "/usr/share/mc/bin/mc.sh"]; then + source /usr/share/mc/bin/mc.sh +fi diff --git a/supported-files/user_templates/ckubu/.profile b/supported-files/user_templates/ckubu/.profile index edc7a33..c9df1eb 100644 --- a/supported-files/user_templates/ckubu/.profile +++ b/supported-files/user_templates/ckubu/.profile @@ -26,5 +26,7 @@ fi # as the current directory when leaving the midnight commander # #. /usr/lib/mc/bin/mc.sh -. /usr/share/mc/bin/mc.sh +if [ -f "/usr/share/mc/bin/mc.sh"]; then + source /usr/share/mc/bin/mc.sh +fi diff --git a/supported-files/user_templates/root/.profile b/supported-files/user_templates/root/.profile index 1a97c71..91af108 100644 --- a/supported-files/user_templates/root/.profile +++ b/supported-files/user_templates/root/.profile @@ -19,6 +19,8 @@ fi # as the current directory when leaving the midnight commander # # . /usr/lib/mc/bin/mc.sh -. /usr/share/mc/bin/mc.sh +if [ -f "/usr/share/mc/bin/mc.sh"]; then + source /usr/share/mc/bin/mc.sh +fi mesg n