forked from ungleich-public/cdist
Fix tr reading from file.
This commit is contained in:
parent
b371c42d53
commit
3759a37fbd
2 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
version=$(cat "$__object/parameter/version")
|
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")
|
machine=$(cat "$__global/explorer/machine")
|
||||||
case $machine in
|
case $machine in
|
||||||
x86_64|amd64)
|
x86_64|amd64)
|
||||||
|
|
|
@ -59,7 +59,7 @@ mkdir "$__object/files"
|
||||||
(
|
(
|
||||||
if [ -f "$__object/parameter/option" ]; then
|
if [ -f "$__object/parameter/option" ]; then
|
||||||
# comma seperated list of options
|
# comma seperated list of options
|
||||||
options="$(tr '\n' ',' "$__object/parameter/option")"
|
options="$(tr '\n' ',' < "$__object/parameter/option")"
|
||||||
printf '%s ' "${options%*,}"
|
printf '%s ' "${options%*,}"
|
||||||
fi
|
fi
|
||||||
if [ -f "$__object/parameter/comment" ]; then
|
if [ -f "$__object/parameter/comment" ]; then
|
||||||
|
|
Loading…
Reference in a new issue