Skip to content

Commit

Permalink
Fix var content breaking sed command
Browse files Browse the repository at this point in the history
  • Loading branch information
j00ch committed Mar 1, 2021
1 parent 27d3a41 commit 83162a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linux-ck-autobuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 83162a1

Please sign in to comment.