Fix tr reading from file.

This commit is contained in:
Darko Poljak 2017-09-26 21:20:42 +02:00
parent b371c42d53
commit 3759a37fbd
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
version=$(cat "$__object/parameter/version")
kernel_name=$(tr '[:upper:]' '[:lower:]' "$__global/explorer/kernel_name")
kernel_name=$(tr '[:upper:]' '[:lower:]' < "$__global/explorer/kernel_name")
machine=$(cat "$__global/explorer/machine")
case $machine in
x86_64|amd64)

View file

@ -59,7 +59,7 @@ mkdir "$__object/files"
(
if [ -f "$__object/parameter/option" ]; then
# comma seperated list of options
options="$(tr '\n' ',' "$__object/parameter/option")"
options="$(tr '\n' ',' < "$__object/parameter/option")"
printf '%s ' "${options%*,}"
fi
if [ -f "$__object/parameter/comment" ]; then