Closed emrakyz closed 3 months ago
The old behavior can return wrong variables. Example:
First variable named texroot outputs: % root = main.tex PARTITION_ROOT="$(findmnt -n -o SOURCE /)" UUID_ROOT="$(blkid -s UUID -o value "$PARTITION_ROOT")" PARTUUID_ROOT="$(blkid -s PARTUUID -o value "$PARTITION_ROOT")"
% root = main.tex PARTITION_ROOT="$(findmnt -n -o SOURCE /)" UUID_ROOT="$(blkid -s UUID -o value "$PARTITION_ROOT")" PARTUUID_ROOT="$(blkid -s PARTUUID -o value "$PARTITION_ROOT")"
Second: "$(blkid -s PARTUUID -o value "$PARTITION_ROOT")"
"$(blkid -s PARTUUID -o value "$PARTITION_ROOT")"
Third: $(blkid-sPARTUUID-ovalue$PARTITION_ROOT)
$(blkid-sPARTUUID-ovalue$PARTITION_ROOT)
Right now, the script is more minimal, posix compliant and outputs the file correctly: main.tex
main.tex
The old behavior can return wrong variables. Example:
First variable named texroot outputs:
% root = main.tex PARTITION_ROOT="$(findmnt -n -o SOURCE /)" UUID_ROOT="$(blkid -s UUID -o value "$PARTITION_ROOT")" PARTUUID_ROOT="$(blkid -s PARTUUID -o value "$PARTITION_ROOT")"
Second:
"$(blkid -s PARTUUID -o value "$PARTITION_ROOT")"
Third:
$(blkid-sPARTUUID-ovalue$PARTITION_ROOT)
Right now, the script is more minimal, posix compliant and outputs the file correctly:
main.tex