logo

utils-extra

Collection of extra tools for Unixes git clone https://anongit.hacktivis.me/git/utils-extra.git/

test_functions.sh (303B)


  1. #!/bin/sh
  2. # SPDX-FileCopyrightText: 2017-2022 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. # SPDX-License-Identifier: MPL-2.0
  4. has_glibc() {
  5. test -f /usr/include/features.h && grep -q '#define\W__GLIBC__' /usr/include/features.h
  6. }
  7. has_musl() {
  8. command -v ldd && ldd 2>&1 | grep -q musl
  9. }