logo

utils

Old programs, got split in utils-std and utils-extra git clone https://hacktivis.me/git/utils.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. }