TT#22502 ngcp-update-db-schema fix sort and -z option

* -z option in sort for missing_revisions is redundant
      and sometimes procuces a null byte warning

Change-Id: I5ce45cf991db6a0e2a5c3f3d1e4dd5e87ebc9bb6
changes/46/15846/1
Kirill Solomko 8 years ago
parent 27a4110cc6
commit 122891ad5f

@ -166,7 +166,7 @@ apply_revs() {
$( {
ngcp-check-rev-applied --schema db_schema --revision $revs | awk '/^No match for revision/ {print $5}' ;
ngcp-check-rev-applied --schema db_schema --revision $node_revs --node "$nodename" | awk '/^No match for revision/ {print $5}' ;
} | sort -z -n -u ) ; do
} | sort -n -u ) ; do
revision_file="$(find /usr/share/ngcp-db-schema/ -name "$missing_revision")"
# execute the rev script iff there's no entry for the *current* host yet

Loading…
Cancel
Save