diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-05-13 12:02:34 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-05-13 12:02:34 +0000 |
commit | 7473ead31ab8c472f9f8aede449de858c83a3fd1 (patch) | |
tree | 5c0426bb899f28ba834ef6095f2dd4e7d4cadcb1 /distrib/miniroot/install.sub | |
parent | 1446c5ca19e1061099108171abaf1ec85e5876f2 (diff) |
Protect against an possibly empty shell variable
Diffstat (limited to 'distrib/miniroot/install.sub')
-rw-r--r-- | distrib/miniroot/install.sub | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 98b7d3dc201..0968ca28e2f 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: install.sub,v 1.20 1997/05/13 03:51:27 millert Exp $ +# $OpenBSD: install.sub,v 1.21 1997/05/13 12:02:33 niklas Exp $ # $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $ # # Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -753,7 +753,7 @@ install_from_mounted_fs() { fi # Extract file - if [ $_f = $_kernel ]; then + if [ X$_f = X$_kernel ]; then cp $_filename /mnt/$_f else cat $_filename | (cd /mnt; tar -zxvpf -) |