diff --git a/config/path b/config/path index 9262dbc787..2bdd0e24eb 100644 --- a/config/path +++ b/config/path @@ -56,8 +56,9 @@ SED="sed -i" if [ -n "$1" ]; then PKG_DIR=`find $PACKAGES -type d -name $1 2>/dev/null` - if [ $PKG_DIR = *$'\n'* ]; then - echo -e "Error - multiple package folders:\n$PKG_DIR" + if [ "${PKG_DIR}" != "$(echo $PKG_DIR | tr -d '\n')" ]; then + echo "Error - multiple package folders:" + echo "$PKG_DIR" exit 1 fi fi