From ccff3ae2a8281180620bf25cf78462c77822fb96 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Fri, 20 Sep 2019 15:16:11 +0200 Subject: [PATCH] also mod opsiscript files --- lib/builder-targets.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/builder-targets.sh b/lib/builder-targets.sh index 53df44e..52af11e 100644 --- a/lib/builder-targets.sh +++ b/lib/builder-targets.sh @@ -252,6 +252,13 @@ builder_create() { }" $inst_file done + for inst_file in `find ${INST_DIR}/CLIENT_DATA -type f -name "*.opsiscript"` ; do + sed -i -e "/@@BUILDER_VARIABLES@@/ { + r "$var_file" + d + }" $inst_file + done + # convert to dos file linefeed find $INST_DIR/CLIENT_DATA -type f | xargs -n1 -iREP sh -c 'file -i $0 | grep -v "utf-16" | grep "text/plain" && '$CMD_unix2dos' $0 ' REP >/dev/null