1
0
mirror of https://github.com/sstephenson/bats.git synced 2024-11-17 11:42:33 +01: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 set -e
resolve_link() { resolve_link() {
$(type -p greadlink readlink | head -1) "$1" $(type -p greadlink readlink | head -n1) "$1"
} }
abs_dirname() { abs_dirname() {

View File

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