Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

Avoid undocumented usage of the head utility. #163

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e

resolve_link() {
$(type -p greadlink readlink | head -1) "$1"
$(type -p greadlink readlink | head -n1) "$1"
}

abs_dirname() {
Expand Down
2 changes: 1 addition & 1 deletion libexec/bats
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ help() {
}

resolve_link() {
$(type -p greadlink readlink | head -1) "$1"
$(type -p greadlink readlink | head -n1) "$1"
}

abs_dirname() {
Expand Down