Fix 6ac0790: don't show the location to / failure of 'realpath' every time (#6719)

This commit is contained in:
Patric Stout 2018-04-14 22:05:39 +02:00 committed by GitHub
parent 43338b8a45
commit aaf7e98c77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1202,7 +1202,7 @@ check_params() {
fi
}
if ! which realpath; then
if [ -z `which realpath 2>/dev/null` ]; then
realpath() { readlink -f -- "$@"; }
fi