From 062d16f0ea24277072e1dd5f6f799bd915d7c6a1 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sat, 16 Mar 2024 22:47:34 +0100 Subject: [PATCH] writesetting: Allow use of / --- bin/pkgbuilder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pkgbuilder b/bin/pkgbuilder index 0d3978f..6e3db0b 100755 --- a/bin/pkgbuilder +++ b/bin/pkgbuilder @@ -36,7 +36,7 @@ readSetting() { # $1=filename $2=name $3=defaultvalue writeSetting() { #$1=filename $2=valuename $3=value local -r LINE=$(grep "^${2}=" "${1}") if [ "${LINE}" != "" ]; then - sed -i "s/^${2}=.*/${2}=${3}/" "${1}" + sed -i "s/^${2}=.*/${2}=${3//\//\\\/}/" "${1}" else echo "${2}=${3}" >> "${1}" fi