mirror of
https://github.com/sstephenson/bats.git
synced 2025-03-03 15:29:52 +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:
parent
03608115df
commit
adc7ecfe17
|
@ -2,7 +2,7 @@
|
|||
set -e
|
||||
|
||||
resolve_link() {
|
||||
$(type -p greadlink readlink | head -1) "$1"
|
||||
$(type -p greadlink readlink | head -n1) "$1"
|
||||
}
|
||||
|
||||
abs_dirname() {
|
||||
|
|
|
@ -27,7 +27,7 @@ help() {
|
|||
}
|
||||
|
||||
resolve_link() {
|
||||
$(type -p greadlink readlink | head -1) "$1"
|
||||
$(type -p greadlink readlink | head -n1) "$1"
|
||||
}
|
||||
|
||||
abs_dirname() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user