From 89809210d012817c445700ac3967a18921c34672 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Mon, 14 Feb 2022 02:57:53 +0300 Subject: [PATCH] [fix] reg_readkey: command not found --- builder | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/builder b/builder index ea271ef..a6bfdae 100644 --- a/builder +++ b/builder @@ -23,6 +23,14 @@ set -Eeuo pipefail trap cleanup SIGINT SIGTERM ERR EXIT +function reg_readkey () # $1: path, $2: key +{ + cygpath -u "$( + reg query "$1" //v "$2" | \ + grep -F "$2" | \ + awk '{ $1=$2=""; print $0 }')" +} + # Whoami ScriptFullname=$(readlink -e "$0") ScriptName=$(basename "$0") @@ -85,14 +93,6 @@ ArgQuiet="false" ArgWarnings="false" ArgNoColors="false" -function reg_readkey () # $1: path, $2: key -{ - cygpath -u "$( - reg query "$1" //v "$2" | \ - grep -F "$2" | \ - awk '{ $1=$2=""; print $0 }')" -} - function is_true () # $1: Bool arg to check { echo "$1" | grep -Piq '^true$'