From 8354fc2b87b00e2de3256ae3bdbe97077f8afbcb Mon Sep 17 00:00:00 2001 From: 0xmachos <0xmachos@gmail.com> Date: Sat, 11 May 2024 11:52:02 +0100 Subject: [PATCH] Replace ls with echo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - So we don’t fork/ exec --- uuid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uuid b/uuid index fcd57eb..0253e20 100755 --- a/uuid +++ b/uuid @@ -35,7 +35,7 @@ function main { # cat "${UUID_FILE}" | grep -oE '[[:alnum:]]{8}(-[[:alnum:]]{4}){3}-[[:alnum:]]{12}' done - UUID=$(ls $HOME/Library/Application\ Support/CrashReporter/* | grep -oE '[[:alnum:]]{8}(-[[:alnum:]]{4}){3}-[[:alnum:]]{12}' | head -n 1) + UUID=$(echo "$HOME/Library/Application Support/CrashReporter/"* | grep -oE '[[:alnum:]]{8}(-[[:alnum:]]{4}){3}-[[:alnum:]]{12}' | head -n 1) echo echo "UUID is probably: ${UUID}" echo