From 83162a16879b134dc743ef9d0065cf488718b646 Mon Sep 17 00:00:00 2001 From: Jochum D Date: Mon, 1 Mar 2021 23:20:30 +0100 Subject: [PATCH] Fix var content breaking sed command --- src/linux-ck-autobuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linux-ck-autobuild b/src/linux-ck-autobuild index 14494f9..f52de3a 100644 --- a/src/linux-ck-autobuild +++ b/src/linux-ck-autobuild @@ -84,7 +84,7 @@ mv /home/$USER/.config/$program_name/$program_name.conf /home/$USER/.config/$pro cp /etc/$program_name/default.conf /home/$USER/.config/$program_name/$program_name.conf for element in "${UPDATE[@]}"; do - sed -i '/^#/!s/'$element'=".*"/'$element'="'${!element}'"/g' /home/$USER/.config/$program_name/$program_name.conf + sed -i '/^#/!s|'$element'=".*"|'$element'="'${!element}'"|g' /home/$USER/.config/$program_name/$program_name.conf done sed -i '/^#/!s/SUBARCH=(.*)/SUBARCH=( '"${SUBARCH[*]}"' )/g' /home/$USER/.config/$program_name/$program_name.conf