os-prober/os-prober-disable-debug-test.patch
Hedayat Vatankhah ac292e1ea1 Update to 1.57 (#890409)
- Use shell string processing rather than 'basename' (#875356)
- Make it possible to disable logging debug messages by assigning a value to
  OS_PROBER_DISABLE_DEBUG environment variable (#893997).
- Detect multi btrfs pools/volumes (#888341)
2013-01-31 23:58:53 +03:30

15 lines
344 B
Diff

diff -ur os-prober-1.56-orig/common.sh os-prober-1.56/common.sh
--- os-prober-1.56-orig/common.sh 2012-12-26 13:53:55.962187097 -0500
+++ os-prober-1.56/common.sh 2013-01-10 08:25:14.843206268 -0500
@@ -76,7 +76,9 @@
}
debug() {
- log "debug: $@"
+ if [ -z "$OS_PROBER_DISABLE_DEBUG" ]; then
+ log "debug: $@"
+ fi
}
result () {