1
0
mirror of https://github.com/sstephenson/bats.git synced 2024-09-29 20:48:27 +02:00

Avoid undocumented usage of the head utility.

Some implementations of head (e.g. the one in Busybox)
can't handle options like "-1". Replace them with "-n1".

Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
This commit is contained in:
Dmitry Rozhkov 2016-05-02 14:47:48 +00:00
parent 03608115df
commit adc7ecfe17
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
set -e
resolve_link() {
$(type -p greadlink readlink | head -1) "$1"
$(type -p greadlink readlink | head -n1) "$1"
}
abs_dirname() {

View File

@ -27,7 +27,7 @@ help() {
}
resolve_link() {
$(type -p greadlink readlink | head -1) "$1"
$(type -p greadlink readlink | head -n1) "$1"
}
abs_dirname() {