mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
eval is nec within backticks, so 'dmesg | grep brcm' works
This commit is contained in:
parent
537ebe4303
commit
9d6f6f2966
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ function cat_cmd() { # $1 = command + params, $2 = explan
|
||||||
if [ -z "$pth" ]; then
|
if [ -z "$pth" ]; then
|
||||||
echo "COMMAND NOT FOUND: $1" >> $outfile
|
echo "COMMAND NOT FOUND: $1" >> $outfile
|
||||||
else
|
else
|
||||||
$(echo $1) >> $outfile
|
$(echo "eval $1") >> $outfile # eval is nec within backticks, so | (pipes) work: https://stackoverflow.com/a/7184782
|
||||||
fi
|
fi
|
||||||
echo >> $outfile
|
echo >> $outfile
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue