summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Breitner <mail@joachim-breitner.de>2014-04-19 16:14:38 +0200
committerJoachim Breitner <mail@joachim-breitner.de>2014-04-19 16:14:38 +0200
commit33350eab727a24440ee583b854c6643d334eb75d (patch)
tree0470d32ada6e04534f2c68d756058e687b45d572
parentbbf1cca551c1b401f869468ea53518765132a6c9 (diff)
downloadhaskell-33350eab727a24440ee583b854c6643d334eb75d.tar.gz
Do not use basename()
-rwxr-xr-xsync-all2
1 files changed, 1 insertions, 1 deletions
diff --git a/sync-all b/sync-all
index ba80cfe35d..e43a6f682e 100755
--- a/sync-all
+++ b/sync-all
@@ -1002,7 +1002,7 @@ END {
);
for (@obsolete_dirs) {
my ($dir, $hash) = $_;
- my $name = basename $dir;
+ my $name = $dir =~ m!/([^/]+)$!;
message "== Checking for old $name repo";
if (-d "$dir/.git") {
chdir($dir);