Skip to content

Commit

Permalink
Proper cwd-finding
Browse files Browse the repository at this point in the history
  • Loading branch information
rking authored and rking@sharpsaw.org committed Feb 18, 2013
1 parent 192b9fa commit deee382
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/show-votes
@@ -1,4 +1,5 @@
#!/usr/bin/perl -n -0400
use Cwd;
if (s/.*VOTE:\s*(.*?)#?\s*:ETOV/$1/s) {
my @lines = map {
if (/s(?:ays|ez):?\s*(\w*)/) {
Expand All @@ -17,5 +18,6 @@ if (s/.*VOTE:\s*(.*?)#?\s*:ETOV/$1/s) {
}
"$_\n"
} split /\n/, $1;
print qq{\e[34;1m`pwd`/$ARGV\e[0m\n@lines}
$pwd = cwd();
print qq{\e[34;1m$pwd/$ARGV\e[0m\n@lines}
}

0 comments on commit deee382

Please sign in to comment.