From ecca742d1a44a7f043204cb6fa322cfc7599a275 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Mon, 30 Sep 2024 15:08:41 +0200 Subject: [PATCH] Allow `confirm` dialogue without default value --- lib/modules/partition/confirm.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/partition/confirm.fish b/lib/modules/partition/confirm.fish index 1356b1c3..077cbb84 100644 --- a/lib/modules/partition/confirm.fish +++ b/lib/modules/partition/confirm.fish @@ -1,6 +1,6 @@ #!/bin/env fish function confirm -a message default - set -l options (echo "[y/n]" | string replace $default (string upper $default)) + set -l options (echo "[y/n]" | string replace "$default" (string upper "$default")) while true read -l value -P "$message $options "