From d508b92efd2d065cd6af621265264269c9c15ad9 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Wed, 20 Oct 2021 07:24:24 -0500 Subject: [PATCH] Make profile POSIX compliant Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- dot_profile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dot_profile b/dot_profile index 183c491..0a184df 100644 --- a/dot_profile +++ b/dot_profile @@ -1,7 +1,7 @@ +# shellcheck shell=sh # User specific environment -if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]] -then - export PATH="$HOME/.local/bin:$HOME/bin:$PATH" +if ! [ "$(expr "$PATH" : "$HOME/.local/bin:$HOME/bin:")" ];then + export PATH="$HOME/.local/bin:$HOME/bin:$PATH" fi # Linuxbrew setup