X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/7d34338b3d0554847d3efdb3f08040850d0a60fd..42e5ed9236d5417f5827df3648e72f8e7ffe5b95:/mr?ds=inline diff --git a/mr b/mr index f9a208f..494e89b 100755 --- a/mr +++ b/mr @@ -440,13 +440,13 @@ elsif ($action eq 'register') { } $ENV{MR_REPO}=getcwd(); - my $command=findcommand("register", $ENV{MR_CONFIG}, $directory, 'DEFAULT'); + my $command=findcommand("register", $ENV{MR_REPO}, $directory, 'DEFAULT'); if (! defined $command) { die "mr $action: unknown repository type\n"; } $ENV{MR_REPO}=~s/.*\/(.*)/$1/; - $command="set -e; ".$config{$ENV{MR_CONFIG}}{$directory}{lib}."\n". + $command="set -e; ".$config{$directory}{DEFAULT}{lib}."\n". "my_action(){ $command\n }; my_action ". join(" ", map { s/\//\/\//g; s/"/\"/g; '"'.$_.'"' } @ARGV); print "mr $action: running >>$command<<\n" if $verbose;