Commit 86651079 authored by gsell's avatar gsell
Browse files

scripts/Bootstrap/Pmodules/libpmodules.bash:

- in function log(): redirect output to '1>&$fd' not '/dev/fd/$fd',
  writing to '/dev/fd/X' might run into permission problems
parent 0a2ee2e1
...@@ -9,7 +9,7 @@ log() { ...@@ -9,7 +9,7 @@ log() {
local -ri fd=$1 local -ri fd=$1
local -r fmt="$2\n" local -r fmt="$2\n"
shift 2 shift 2
printf -- "$fmt" "$@" >> /dev/fd/$fd printf -- "$fmt" "$@" 1>&$fd
} }
info() { info() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment