From 7a72f78fe0b674ef592e1c9a272ae1a92e10da34 Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 19 Jan 2002 11:54:26 +0000 Subject: [PATCH] * fixed compares --- compiler/utils/samplecfg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/utils/samplecfg b/compiler/utils/samplecfg index 15083e24d6..413e49aa54 100644 --- a/compiler/utils/samplecfg +++ b/compiler/utils/samplecfg @@ -4,7 +4,7 @@ # # Generate Sample Free Pascal configuration file # -if [ $# == 0 ]; then +if [ $# = 0 ]; then echo 'Usage :' echo 'samplecfg fpcdir confdir' echo 'fpcdir = Path where FPC is installed' @@ -13,7 +13,7 @@ if [ $# == 0 ]; then fi if [ $2 ]; then sysdir=$2 - [ -d $sysdir ] || mkdir $sysdir + [ -d $sysdir ] || mkdir $sysdir else sysdir=/etc fi @@ -29,7 +29,7 @@ fi # if [ -f $thefile ] ; then mv $thefile $thefile.orig >/dev/null 2>&1 - if [ $? == 0 ]; then + if [ $? = 0 ]; then echo Saved old config to $thefile.orig else echo Could not save old config. Bailing out...