forked from mirrored-repos/manjaro-tools
[util-iso] use local vars in logger
This commit is contained in:
parent
fa3de8d6a9
commit
2ffa759cd6
1 changed files with 3 additions and 3 deletions
|
@ -14,8 +14,8 @@
|
||||||
|
|
||||||
# $1: function
|
# $1: function
|
||||||
run_log(){
|
run_log(){
|
||||||
logfile=${cache_dir_iso}/${buildset_iso}.log
|
local logfile=${cache_dir_iso}/${buildset_iso}.log
|
||||||
logpipe=$(mktemp -u "/tmp/logpipe.XXXXXXXX")
|
local logpipe=$(mktemp -u "/tmp/logpipe.XXXXXXXX")
|
||||||
mkfifo "$logpipe"
|
mkfifo "$logpipe"
|
||||||
tee "$logfile" < "$logpipe" &
|
tee "$logfile" < "$logpipe" &
|
||||||
local teepid=$!
|
local teepid=$!
|
||||||
|
@ -74,7 +74,7 @@ copy_livecd_helpers(){
|
||||||
cp ${LIBDIR}/util-msg.sh $1
|
cp ${LIBDIR}/util-msg.sh $1
|
||||||
cp ${LIBDIR}/util.sh $1
|
cp ${LIBDIR}/util.sh $1
|
||||||
cp ${PKGDATADIR}/scripts/kbd-model-map $1
|
cp ${PKGDATADIR}/scripts/kbd-model-map $1
|
||||||
|
|
||||||
# cp ${LIBDIR}/util-mount.sh $1
|
# cp ${LIBDIR}/util-mount.sh $1
|
||||||
if [[ -f ${USER_CONFIG}/manjaro-tools.conf ]]; then
|
if [[ -f ${USER_CONFIG}/manjaro-tools.conf ]]; then
|
||||||
msg2 "Copying ${USER_CONFIG}/manjaro-tools.conf ..."
|
msg2 "Copying ${USER_CONFIG}/manjaro-tools.conf ..."
|
||||||
|
|
Loading…
Reference in a new issue