diff --git a/rsync_ui.sh b/rsync_ui.sh index 2da0220..0205a5a 100755 --- a/rsync_ui.sh +++ b/rsync_ui.sh @@ -4,7 +4,7 @@ set -e # macOS does not support readlink -f, so we use greadlink instead if [[ `uname` == 'Darwin' ]]; then - ash greadlink 2>/dev/null || { echo >&2 "Install greadlink using brew."; exit 1; } + command -v greadlink 2>/dev/null 2>&1 || { echo >&2 "Install greadlink using brew."; exit 1; } readlink='greadlink' else readlink='readlink'