1
0
Fork 0
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:
A Holt 2020-04-09 12:16:27 -04:00 committed by GitHub
parent 537ebe4303
commit 9d6f6f2966
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
} }