mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 21:49:11 +02:00
* fixed compares
This commit is contained in:
parent
cb11c08d49
commit
7a72f78fe0
@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
# Generate Sample Free Pascal configuration file
|
# Generate Sample Free Pascal configuration file
|
||||||
#
|
#
|
||||||
if [ $# == 0 ]; then
|
if [ $# = 0 ]; then
|
||||||
echo 'Usage :'
|
echo 'Usage :'
|
||||||
echo 'samplecfg fpcdir confdir'
|
echo 'samplecfg fpcdir confdir'
|
||||||
echo 'fpcdir = Path where FPC is installed'
|
echo 'fpcdir = Path where FPC is installed'
|
||||||
@ -13,7 +13,7 @@ if [ $# == 0 ]; then
|
|||||||
fi
|
fi
|
||||||
if [ $2 ]; then
|
if [ $2 ]; then
|
||||||
sysdir=$2
|
sysdir=$2
|
||||||
[ -d $sysdir ] || mkdir $sysdir
|
[ -d $sysdir ] || mkdir $sysdir
|
||||||
else
|
else
|
||||||
sysdir=/etc
|
sysdir=/etc
|
||||||
fi
|
fi
|
||||||
@ -29,7 +29,7 @@ fi
|
|||||||
#
|
#
|
||||||
if [ -f $thefile ] ; then
|
if [ -f $thefile ] ; then
|
||||||
mv $thefile $thefile.orig >/dev/null 2>&1
|
mv $thefile $thefile.orig >/dev/null 2>&1
|
||||||
if [ $? == 0 ]; then
|
if [ $? = 0 ]; then
|
||||||
echo Saved old config to $thefile.orig
|
echo Saved old config to $thefile.orig
|
||||||
else
|
else
|
||||||
echo Could not save old config. Bailing out...
|
echo Could not save old config. Bailing out...
|
||||||
|
Loading…
Reference in New Issue
Block a user