summaryrefslogtreecommitdiff
path: root/lsinitramfs
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2010-06-17 11:45:30 +0200
committermaximilian attems <maks@debian.org>2010-06-17 13:59:49 +0200
commit969f8fdc8561869dfc600ed6bc5cd892df3c130e (patch)
tree0c55f950a96307a2c069852f2b96911924c67c8e /lsinitramfs
parentecb8416d5ede3e5eae463802721c2a12216b61a4 (diff)
downloadinitramfs-tools-969f8fdc8561869dfc600ed6bc5cd892df3c130e.tar.gz
initramfs-tools-969f8fdc8561869dfc600ed6bc5cd892df3c130e.zip
lsinitramfs: set errexit and nounset
better protect it from the start as have the pain later.. Signed-off-by: maximilian attems <maks@debian.org>
Diffstat (limited to 'lsinitramfs')
-rwxr-xr-xlsinitramfs2
1 files changed, 2 insertions, 0 deletions
diff --git a/lsinitramfs b/lsinitramfs
index 809445f..3f67381 100755
--- a/lsinitramfs
+++ b/lsinitramfs
@@ -1,5 +1,7 @@
#!/bin/sh
+set -eu
+
usage()
{
echo "Usage: $(basename $0) <initramfs file>"