Escape variable in the build_linux.sh
@@ -82,10 +82,10 @@ function build_pipe {
if [ -f "/etc/os-release" ]; then
source /etc/os-release
- echo "${ID}:${VERSION_ID}" >> /tmp/bundle.info
+ echo "\${ID}:\${VERSION_ID}" >> /tmp/bundle.info
elif [ -f "/etc/centos-release" ]; then
- VERSION_ID=$(cat /etc/centos-release | tr -dc '0-9.'|cut -d \. -f1)
- echo "centos:${VERSION_ID}" >> /tmp/bundle.info
+ VERSION_ID=\$(cat /etc/centos-release | tr -dc '0-9.'|cut -d \. -f1)
+ echo "centos:\${VERSION_ID}" >> /tmp/bundle.info
fi
cd $PIPE_CLI_SOURCES_DIR
