Skip to content

Commit

Permalink
Handle missing $EDITOR env var
Browse files Browse the repository at this point in the history
  • Loading branch information
jhunt committed Jul 9, 2018
1 parent 9efefe8 commit ec6a48c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/verse
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ if ($CMD eq 'new' or $CMD eq 'setup') {
!-f "Makefile" or die "Cowardly refusing to clobber your existing Makefile\n";

Verse::Default::extract($dir);
exec "$ENV{EDITOR} site.yml; $0 build";
my $vim = $ENV{EDITOR} || 'vi';
exec "$vim site.yml; $0 build";
exit 0;
}

Expand Down

0 comments on commit ec6a48c

Please sign in to comment.