add elif instead of bare if for docker and ssh detection

This commit is contained in:
Jesse Hitch 2023-05-28 12:16:18 +02:00
parent 928debab5a
commit 70d53a4be2

View file

@ -53,9 +53,7 @@ fi
if [ -f "/.dockerenv" ]; then
export CURRENT_SHELL_LOCATION="🐳"
fi
if [ ! -z $SSH_CLIENT ]; then
elif [ ! -z $SSH_CLIENT ]; then
export CURRENT_SHELL_LOCATION="🤖"
else
export CURRENT_SHELL_LOCATION="🏡"