Skip to content

Commit 9b7f5b7

Browse files
authored
Fix UUID missing when generating new UUID and not showing from setup configuration (#64)
1 parent 34b4cd9 commit 9b7f5b7

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

scripts/app-config.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ process_entries() {
9292
if [ "$(echo "$config_entry" | jq -r '.properties | type')" = "array" ]; then
9393
for entry in $properties; do
9494
entry_name=$(echo "$entry" | sed 's/^"//' | sed 's/"$//' | tr -d "*#&") # Remove surrounding quotes and denoters
95-
denoter=$(echo "$entry" | cut -c1)
95+
denoter=$(echo "${entry%${entry#?}}")
9696

9797
[ -n "$(grep "^$entry_name=" "$ENV_FILE")" ] && is_update=true
9898

scripts/util/uuid-generator.sh

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/bin/sh
22

33
generate_uuid() {
4-
local denoter="$1"
5-
64
if [ "$(uname)" = "Darwin" ]; then
75
uuid="$(uuidgen | tr 'A-Z' 'a-z')"
86
else

0 commit comments

Comments
 (0)