X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=grml-live;h=73ee61b607a7fbfe263f6d63f472c1d6439ef55e;hp=3f42b783d8652323942a6702636ad0f195a1b37c;hb=769010633b88c8d6e5912fc02f46a6582f9598b7;hpb=da6352e9a6ada451940fb24635a302cffebc5394 diff --git a/grml-live b/grml-live index 3f42b78..73ee61b 100755 --- a/grml-live +++ b/grml-live @@ -196,7 +196,7 @@ trap umount_all EXIT # 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"