Skip to content

Commit

Permalink
🎨(bin) sort release in reverse order for bin/activate
Browse files Browse the repository at this point in the history
In order to easily identify the history of the different release
when running the bin/activate command, a sort operation is added
to have the most recent branches first.
  • Loading branch information
slandrault committed Sep 3, 2020
1 parent e28db7a commit 9160e58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/activate
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ function select_release(){
read -r -a releases <<< $(
find "${PROJECT_DIRECTORY}/releases/" -maxdepth 4 -name Dockerfile |
sed "s|${PROJECT_DIRECTORY}/releases/\\(.*\\)/Dockerfile|\\1|g" |
sort -fir |
xargs
)
n_releases=${#releases[@]}
Expand Down

0 comments on commit 9160e58

Please sign in to comment.