diff --git a/tools/bin/td b/tools/bin/td index 66cb796..dad09c6 100644 --- a/tools/bin/td +++ b/tools/bin/td @@ -244,7 +244,7 @@ recipe_patch() { # If the user has not set their DISPLAY_NAME, try to deduce it # from their system. - if [ -z "$DISPLAY_NAME" ]; then + if [ -z "$DISPLAY_NAME" ] && which getent > /dev/null 2>&1; then DISPLAY_NAME=$(getent passwd "$USER" | cut -d ':' -f 5 | cut -d ',' -f 1) fi