diff --git a/helper/emacs-cli.bash b/helper/emacs-cli.bash index f8a6ddb..01468ee 100755 --- a/helper/emacs-cli.bash +++ b/helper/emacs-cli.bash @@ -1,7 +1,7 @@ #!/usr/bin/env bash resolve_link() { - "$(type -p greadlink readlink | head -1)" "$1" + "$(command -v greadlink || command -v readlink)" "$1" } abs_dirname() {