diff --git a/test/run-ethercatmc-ioc.sh b/test/run-ethercatmc-ioc.sh index 41566c24..9dc2877d 100755 --- a/test/run-ethercatmc-ioc.sh +++ b/test/run-ethercatmc-ioc.sh @@ -132,8 +132,8 @@ require essioc require calc require ethercatmc EOF - sed <../../test/startup/st.${MOTORCFG}.iocsh \ - -e "s/^cd /#cd /" -e 's/^ *< *\([^ ]*\)/iocshLoad("$(ethercatmc_DIR)\1")/g' | + # shellcheck disable=SC2016 + sed <../../test/startup/st.${MOTORCFG}.iocsh -e "s/^cd /#cd /" -e 's/^ *< *\([^ ]*\)/iocshLoad("$(ethercatmc_DIR)\1")/g' | grep -v '^ *#' >>$stcmddst || { echo >&2 can not create stcmddst $stcmddst exit 1