projects
/
grml-live.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Silence LOGFILE errors when using log too early
[grml-live.git]
/
grml-live
diff --git
a/grml-live
b/grml-live
index
3f42b78
..
73ee61b
100755
(executable)
--- a/
grml-live
+++ b/
grml-live
@@
-196,7
+196,7
@@
trap umount_all EXIT
# log output:
# usage: log "string to log"
# log output:
# usage: log "string to log"
-log() { echo "$*" >> $LOGFILE ; }
+log() {
[ -n "$LOGFILE" ] &&
echo "$*" >> $LOGFILE ; }
# cut string at character number int = $1
# usage: cut_string 5 "1234567890" will output "12345"
# cut string at character number int = $1
# usage: cut_string 5 "1234567890" will output "12345"