From ae409c2b97b0d2dfecc5e5753cd32c3b092db345 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Fri, 15 Oct 1999 16:20:58 +0000 Subject: [PATCH] Fix ``MAKEDEV acd'' Spotted by: Mark Knight --- etc/MAKEDEV | 2 +- etc/etc.alpha/MAKEDEV | 2 +- etc/etc.i386/MAKEDEV | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/MAKEDEV b/etc/MAKEDEV index 27e54bafe4f..2fcc4417977 100644 --- a/etc/MAKEDEV +++ b/etc/MAKEDEV @@ -724,7 +724,7 @@ acd*|cd*|mcd*|scd*) mcd*) units=`expr $i : '...\(.*\)'`; name=mcd; blk=7; chr=29;; scd*) units=`expr $i : '...\(.*\)'`; name=scd; blk=16; chr=45;; esac - if [ -z "${units}" -o ${units} -le 0 ]; then + if [ -z "${units}" -o "${units}" -le 0 ]; then units=1 fi if [ "${units}" -le 31 ]; then diff --git a/etc/etc.alpha/MAKEDEV b/etc/etc.alpha/MAKEDEV index 24b23ca1fb4..c5010e305cc 100644 --- a/etc/etc.alpha/MAKEDEV +++ b/etc/etc.alpha/MAKEDEV @@ -694,7 +694,7 @@ acd*|cd*|mcd*|scd*) mcd*) units=`expr $i : '...\(.*\)'`; name=mcd; blk=7; chr=29;; scd*) units=`expr $i : '...\(.*\)'`; name=scd; blk=16; chr=45;; esac - if [ -z "${units}" -o ${units} -le 0 ]; then + if [ -z "${units}" -o "${units}" -le 0 ]; then units=1 fi if [ "${units}" -le 31 ]; then diff --git a/etc/etc.i386/MAKEDEV b/etc/etc.i386/MAKEDEV index 27e54bafe4f..2fcc4417977 100644 --- a/etc/etc.i386/MAKEDEV +++ b/etc/etc.i386/MAKEDEV @@ -724,7 +724,7 @@ acd*|cd*|mcd*|scd*) mcd*) units=`expr $i : '...\(.*\)'`; name=mcd; blk=7; chr=29;; scd*) units=`expr $i : '...\(.*\)'`; name=scd; blk=16; chr=45;; esac - if [ -z "${units}" -o ${units} -le 0 ]; then + if [ -z "${units}" -o "${units}" -le 0 ]; then units=1 fi if [ "${units}" -le 31 ]; then