aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2021-06-04 16:56:37 +0200
committerJonas Smedegaard <dr@jones.dk>2021-06-04 16:56:37 +0200
commitd2679dcda9fcf6fe518d18befd4c7f146e7e5d51 (patch)
tree35e63f526871305731b0f3160f3e8dd9babb05dc
parent856e400959e26092df3279baf690075647fd75d8 (diff)
fix skip update site.mk unless values provided when prompted
-rwxr-xr-xbin/mkdocs-prep.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mkdocs-prep.pl b/bin/mkdocs-prep.pl
index e452e0b..7d9b1d3 100755
--- a/bin/mkdocs-prep.pl
+++ b/bin/mkdocs-prep.pl
@@ -66,7 +66,7 @@ while ( $section =~ /^(\w+)\h*:\h*(\w\S*(?:\h+\S+)*)/mg ) {
unless ( exists $config->{_}->{$1} ) {
$_ = prompt "Which string should replace token '$token'?";
- next unless $_;
+ next unless length $_;
$config->{_}->{$1} = $_;
$config_has_changed++;
}