On 2/27/21 4:39 PM, Skylar Thompson wrote:
You can fix it if you group the assignments together:
[ -z "$INSMOD" ] && (INSMOD=$(which modprobe) || INSMOD="$(which insmod)")


They do need to be grouped, but if you group them with parentheses, they execute in a subshell, and the assignment is lost.  They should be grouped with braces instead.


_______________________________________________
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos

Reply via email to