]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3198] fix reinstall.sh for YANG modules
authorAndrei Pavel <andrei@isc.org>
Thu, 25 Jan 2024 19:05:27 +0000 (21:05 +0200)
committerAndrei Pavel <andrei@isc.org>
Fri, 26 Jan 2024 10:48:18 +0000 (12:48 +0200)
src/share/yang/modules/utils/reinstall.sh.in

index efb3627352d9e466608df5e89b993dd533f1b771..212a161fa82852d6518cf39f252ce9b0c0575412 100644 (file)
@@ -106,7 +106,7 @@ export LD_LIBRARY_PATH="${LD_LIBRARY_PATH-}:${sysrepo}/lib:${sysrepo}/lib64"
 # Check if module is installed.
 is_module_installed() {
   module=${1}
-  if test "$("${sysrepo}/bin/sysrepoctl" -l | grep -F '| I' | cut -d ' ' -f 1 | tail -n +7 | head -n -1 | grep -Ec "^${module}")" -eq 0; then
+  if test "$("${sysrepo}/bin/sysrepoctl" -l | grep -F '| I' | cut -d ' ' -f 1 | grep -Ec "^${module}")" -eq 0; then
     # not installed
     return 1
   fi