Skip to content

Commit

Permalink
Sort with version
Browse files Browse the repository at this point in the history
  • Loading branch information
mackdk committed Sep 29, 2023
1 parent 47eae55 commit 158304a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testsuite/podman_runner/run_db_migrations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ find ${upgrade_dir} -name "$1-*-to-*"
echo "****************************************** FIND + SED "
find ${upgrade_dir} -name "$1-*-to-*" | sed -n "/$1-$2-to-.*$/,$ p"
echo "****************************************** FIND + SORT"
find ${upgrade_dir} -name "$1-*-to-*" | sort
find ${upgrade_dir} -name "$1-*-to-*" | sort -V
echo "****************************************** FIND + SORT + SED"
find ${upgrade_dir} -name "$1-*-to-*" | sort | sed -n "/$1-$2-to-.*$/,$ p"
find ${upgrade_dir} -name "$1-*-to-*" | sort -V | sed -n "/$1-$2-to-.*$/,$ p"
echo "****************************************** DONE"

# Including all sub-folders of the upgrade dir that comes after the one called "${schema_name}-${schema_version}-to-..."
Expand Down

0 comments on commit 158304a

Please sign in to comment.