Skip to content

Commit

Permalink
Replace ls with echo
Browse files Browse the repository at this point in the history
- So we don’t fork/ exec
  • Loading branch information
0xmachos committed May 11, 2024
1 parent 0606bba commit 8354fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uuid
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8354fc2

Please sign in to comment.