From 692c3fbaa87e1b873f9ae3ea159b0bb6d090f0f8 Mon Sep 17 00:00:00 2001 From: Florian Uhlig <f.uhlig@gsi.de> Date: Fri, 19 Nov 2021 16:26:26 +0100 Subject: [PATCH] Fix script The script contained two problems. The first one was a typo in the shebang. The second problem was in the grep command. If the full path includes by chance the string "so" or "dylib" all files of the directory were found accidentally. Requiring "so" or "dylib" to be at the end of the line fixes the error. --- scripts/checklibs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/checklibs.sh b/scripts/checklibs.sh index f7ad99e404..100e0ddd3e 100755 --- a/scripts/checklibs.sh +++ b/scripts/checklibs.sh @@ -1,4 +1,4 @@ -#!bin/bash +#!/bin/bash # Copyright (C) 2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt # SPDX-License-Identifier: GPL-3.0-only # First commited by Florian Uhlig @@ -13,7 +13,7 @@ LIBDIR=${2:-../lib} # find all libs # libraries are real files with the extensions .so and for macosx .dylib -all_libs=$(find $LIBDIR -type f | grep -e \.dylib -e \.so) +all_libs=$(find $LIBDIR -type f | grep -e \.dylib$ -e \.so$) tmpfile=$(mktemp) -- GitLab