summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pc-sysinstall/backend/functions-parse.sh
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2010-08-24 06:11:46 +0000
committerimp <imp@FreeBSD.org>2010-08-24 06:11:46 +0000
commit2060372a39e9b61f9a53cad829c81f473a5e97fe (patch)
treedb2a07307938f253f872e1c9c27609a144cb8819 /usr.sbin/pc-sysinstall/backend/functions-parse.sh
parent57bdb49e0c58bd5e0f158543f28aaef8711600c0 (diff)
downloadFreeBSD-src-2060372a39e9b61f9a53cad829c81f473a5e97fe.zip
FreeBSD-src-2060372a39e9b61f9a53cad829c81f473a5e97fe.tar.gz
Indent things consistently
PR: 149926 Submitted by: John Hixson
Diffstat (limited to 'usr.sbin/pc-sysinstall/backend/functions-parse.sh')
-rwxr-xr-xusr.sbin/pc-sysinstall/backend/functions-parse.sh26
1 files changed, 13 insertions, 13 deletions
diff --git a/usr.sbin/pc-sysinstall/backend/functions-parse.sh b/usr.sbin/pc-sysinstall/backend/functions-parse.sh
index a95cb33..3604ba4 100755
--- a/usr.sbin/pc-sysinstall/backend/functions-parse.sh
+++ b/usr.sbin/pc-sysinstall/backend/functions-parse.sh
@@ -132,19 +132,19 @@ file_sanity_check()
then
for i in $1
do
- grep "^${i}=" $CFGF >/dev/null 2>/dev/null
- if [ "$?" = "0" ]
- then
- LN=`grep "^${i}=" ${CFGF} | head -n 1 | cut -d '=' -f 2 | tr -d ' '`
- if [ -z "${LN}" ]
- then
- echo "Error: Config fails sanity test! ${i}= is empty"
- exit 1
- fi
- else
- echo "Error: Config fails sanity test! Missing ${i}="
- exit 1
- fi
+ grep "^${i}=" $CFGF >/dev/null 2>/dev/null
+ if [ "$?" = "0" ]
+ then
+ LN=`grep "^${i}=" ${CFGF} | head -n 1 | cut -d '=' -f 2 | tr -d ' '`
+ if [ -z "${LN}" ]
+ then
+ echo "Error: Config fails sanity test! ${i}= is empty"
+ exit 1
+ fi
+ else
+ echo "Error: Config fails sanity test! Missing ${i}="
+ exit 1
+ fi
done
else
echo "Error: Missing config file, and / or values to sanity check for!"
OpenPOWER on IntegriCloud