# HG changeset patch # User Patric Stout # Date 2018-04-14 20:05:39 # Node ID 698798325122a36b9b59a0c392048629f051cd4c # Parent c7c901324dece7e5b2512c8b9b430906d39fc021 Fix 6ac0790: don't show the location to / failure of 'realpath' every time (#6719) diff --git a/config.lib b/config.lib --- a/config.lib +++ b/config.lib @@ -1202,7 +1202,7 @@ check_params() { fi } -if ! which realpath; then +if [ -z `which realpath 2>/dev/null` ]; then realpath() { readlink -f -- "$@"; } fi