summaryrefslogtreecommitdiff
path: root/scripts/boot/0110-debug
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-08-14 01:20:28 +0200
committerDaniel Baumann <daniel@debian.org>2012-08-14 01:20:28 +0200
commit4ecca9f9ba476c987f41fdb596bd5f4f53d85a3c (patch)
tree8fd7500d311ee6409c89aa159f506064501aaf0d /scripts/boot/0110-debug
parentba42304070c7104fbe526f6d166b8bbce36a3cd4 (diff)
downloadlive-boot-4ecca9f9ba476c987f41fdb596bd5f4f53d85a3c.tar.gz
live-boot-4ecca9f9ba476c987f41fdb596bd5f4f53d85a3c.zip
Consistently using case instead of if for conditionals in script boilerplate.
Diffstat (limited to 'scripts/boot/0110-debug')
-rwxr-xr-xscripts/boot/0110-debug13
1 files changed, 9 insertions, 4 deletions
diff --git a/scripts/boot/0110-debug b/scripts/boot/0110-debug
index a74dcb7..f223e93 100755
--- a/scripts/boot/0110-debug
+++ b/scripts/boot/0110-debug
@@ -13,10 +13,15 @@ Debug ()
esac
done
- if [ "${LIVE_DEBUG}" != "true" ]
- then
- return 0
- fi
+ case "${LIVE_DEBUG}" in
+ true)
+ ;;
+ *)
+ return 0
+ ;;
+ esac
+
+ # Write the trace output
set -x
}