also mod opsiscript files
This commit is contained in:
parent
844c298b64
commit
ccff3ae2a8
@ -252,6 +252,13 @@ builder_create() {
|
|||||||
}" $inst_file
|
}" $inst_file
|
||||||
done
|
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
|
# 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
|
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user