Skip to content

Commit

Permalink
beesh: fix search for free revison number
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Jul 1, 2016
1 parent 5fa6651 commit 1c7c338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/beesh.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function check_rebuild() {
beefile_pattern=${beefile_pattern//+/\\+} # replace all + with \+
beefile_pattern=${beefile_pattern//./\\.} # replace all . with \.

beefile_max=$(for bf in $(ls "${beefile%/*}/${beefile_pattern}*.bee" "${BEE_BEEDIR}/${beefile_pattern}*.bee" 2>/dev/null |\
beefile_max=$(for bf in $(ls ${beefile%/*}/${beefile_pattern}*.bee ${BEE_BEEDIR}/${beefile_pattern}*.bee 2>/dev/null |\
grep -E "/${beefile_pattern}-[0-9]+.bee") ; do
echo "${bf}"
done | ${BEESORT} | tail -1)
Expand Down

0 comments on commit 1c7c338

Please sign in to comment.