From d2679dcda9fcf6fe518d18befd4c7f146e7e5d51 Mon Sep 17 00:00:00 2001
From: Jonas Smedegaard <dr@jones.dk>
Date: Fri, 4 Jun 2021 16:56:37 +0200
Subject: fix skip update site.mk unless values provided when prompted

---
 bin/mkdocs-prep.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'bin')

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++;
 	}
-- 
cgit v1.2.3