From 3248327e563cc317c590e62ead4e8253e2020125 Mon Sep 17 00:00:00 2001 From: fatalerrors Date: Thu, 23 Feb 2023 14:43:44 +0100 Subject: [PATCH] [fix] don't use library functions before it's loaded --- profile.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/profile.sh b/profile.sh index 3816c6f..914bafc 100644 --- a/profile.sh +++ b/profile.sh @@ -82,15 +82,15 @@ pathappend () # Store script's path (realpath -s resolve symlinks if profile.sh is a symlink) export MYPATH=$(dirname $(realpath -s $0)) if [[ ! -e $MYPATH/profile.sh ]]; then - disp W "Path detection failed, using pwd..." + echo "[ Warning ] Path detection failed, using pwd..." MYPATH=$(pwd) if [[ ! -e $MYPATH/profile.sh ]]; then - disp E "Impossible to determine installation path, pretty much nothing will work." + echo "[ Error ] Impossible to determine installation path, pretty much nothing will work." fi fi if [[ ! -s $MYPATH/version ]]; then - disp W "Impossible to determine running version of profile, your installation might be broken." + echo "[ Warning ] Impossible to determine running version of profile, your installation might be broken." fi export PROFVERSION=$(cat $MYPATH/version)