Skip to content

Commit

Permalink
Merge pull request #80 from mundifex/reorder-perl
Browse files Browse the repository at this point in the history
Make reorder level winnable on macOS platforms by using perl instead …
  • Loading branch information
blinry authored Mar 30, 2021
2 parents f8f562b + 5b12679 commit 3e5c422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion levels/changing-the-past/reorder
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ git commit -am "Put on shirt"
[win]

# Reorder the commits to dress yourself in the correct way
{ git log main --oneline | LC_ALL=en_US.utf8 grep -Pz "shoes[\s\S]*pants[\s\S]*underwear"; } && { test "$(git log main --oneline | wc -l)" -eq 5; }
{ git log main --oneline | perl -0777 -ne'exit(1) if not /shoes[\s\S]*pants[\s\S]*underwear/'; } && { test "$(git log main --oneline | wc -l)" -eq 5; }

[congrats]

Expand Down

0 comments on commit 3e5c422

Please sign in to comment.