Skip to content

Commit 3f7e8d6

Browse files
committed
[#3198] fix reinstall.sh for YANG modules
1 parent b10991e commit 3f7e8d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/share/yang/modules/utils/reinstall.sh.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export LD_LIBRARY_PATH="${LD_LIBRARY_PATH-}:${sysrepo}/lib:${sysrepo}/lib64"
106106
# Check if module is installed.
107107
is_module_installed() {
108108
module=${1}
109-
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
109+
if test "$("${sysrepo}/bin/sysrepoctl" -l | grep -F '| I' | cut -d ' ' -f 1 | grep -Ec "^${module}")" -eq 0; then
110110
# not installed
111111
return 1
112112
fi

0 commit comments

Comments
 (0)