summaryrefslogtreecommitdiff
path: root/mkinitramfs
diff options
context:
space:
mode:
Diffstat (limited to 'mkinitramfs')
-rwxr-xr-xmkinitramfs6
1 files changed, 3 insertions, 3 deletions
diff --git a/mkinitramfs b/mkinitramfs
index 2fd0cc8..694f423 100755
--- a/mkinitramfs
+++ b/mkinitramfs
@@ -97,13 +97,13 @@ if [ -n "${UMASK}" ]; then
umask "${UMASK}"
fi
-touch $outfile
-outfile="$(readlink -f "$outfile")"
-
if [ -z "${outfile}" ]; then
usage
fi
+touch "$outfile"
+outfile="$(readlink -f "$outfile")"
+
# And by "version" we really mean path to kernel modules
# This is braindead, and exists to preserve the interface with mkinitrd
if [ ${#} -ne 1 ]; then