Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit620f014

Browse files
author
Bryan Henderson
committed
Fix syntax errors so it runs without error messages.
1 parentaef6163 commit620f014

File tree

4 files changed

+43
-43
lines changed

4 files changed

+43
-43
lines changed

‎src/bin/createdb/createdb.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#
1212
#
1313
# IDENTIFICATION
14-
# $Header: /cvsroot/pgsql/src/bin/createdb/Attic/createdb.sh,v 1.5 1996/11/14 10:24:46 bryanh Exp $
14+
# $Header: /cvsroot/pgsql/src/bin/createdb/Attic/createdb.sh,v 1.6 1996/11/17 03:54:44 bryanh Exp $
1515
#
1616
#-------------------------------------------------------------------------
1717

@@ -42,27 +42,27 @@ do
4242
shift;
4343
done
4444

45-
if [-z"$AUTHSYS" ];then
46-
AUTHOPT =""
45+
if [-z"$AUTHSYS" ];then
46+
AUTHOPT=""
4747
else
48-
AUTHOPT ="-a$AUTHSYS"
48+
AUTHOPT="-a$AUTHSYS"
4949
fi
5050

51-
if [-z"$PGHOST" ];then
52-
PGHOSTOPT =""
51+
if [-z"$PGHOST" ];then
52+
PGHOSTOPT=""
5353
else
54-
PGHOSTOPT ="-h$PGHOST"
54+
PGHOSTOPT="-h$PGHOST"
5555
fi
5656

57-
if [-z"$PGPORT" ];then
58-
PGPORTOPT =""
57+
if [-z"$PGPORT" ];then
58+
PGPORTOPT=""
5959
else
60-
PGPORTOPT ="-p$PGPORT"
60+
PGPORTOPT="-p$PGPORT"
6161
fi
6262

6363
psql -tq$AUTHOPT$PGHOSTOPT$PGPORTOPT -c"create database$dbname" template1
6464

65-
if [$?-ne 0 ]
65+
if [$?-ne 0 ];then
6666
echo"$CMDNAME: database creation failed on$dbname."
6767
exit 1
6868
fi

‎src/bin/createuser/createuser.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99
#
1010
# IDENTIFICATION
11-
# $Header: /cvsroot/pgsql/src/bin/createuser/Attic/createuser.sh,v 1.6 1996/11/14 10:24:54 bryanh Exp $
11+
# $Header: /cvsroot/pgsql/src/bin/createuser/Attic/createuser.sh,v 1.7 1996/11/17 03:54:54 bryanh Exp $
1212
#
1313
# Note - this should NOT be setuid.
1414
#
@@ -39,25 +39,25 @@ do
3939
shift;
4040
done
4141

42-
if [-z"$AUTHSYS" ];then
43-
AUTHOPT =""
42+
if [-z"$AUTHSYS" ];then
43+
AUTHOPT=""
4444
else
45-
AUTHOPT ="-a$AUTHSYS"
45+
AUTHOPT="-a$AUTHSYS"
4646
fi
4747

48-
if [-z"$PGHOST" ];then
49-
PGHOSTOPT =""
48+
if [-z"$PGHOST" ];then
49+
PGHOSTOPT=""
5050
else
51-
PGHOSTOPT ="-h$PGHOST"
51+
PGHOSTOPT="-h$PGHOST"
5252
fi
5353

54-
if [-z"$PGPORT" ];then
55-
PGPORTOPT =""
54+
if [-z"$PGPORT" ];then
55+
PGPORTOPT=""
5656
else
57-
PGPORTOPT ="-p$PGPORT"
57+
PGPORTOPT="-p$PGPORT"
5858
fi
5959

60-
PARGS="-tq$AUTHOPT$PGHOSTOPT$PGPORTOPT
60+
PARGS="-tq$AUTHOPT$PGHOSTOPT$PGPORTOPT"
6161

6262
#
6363
# generate the first part of the actual monitor command

‎src/bin/destroydb/destroydb.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#
1212
#
1313
# IDENTIFICATION
14-
# $Header: /cvsroot/pgsql/src/bin/destroydb/Attic/destroydb.sh,v 1.5 1996/11/14 10:25:14 bryanh Exp $
14+
# $Header: /cvsroot/pgsql/src/bin/destroydb/Attic/destroydb.sh,v 1.6 1996/11/17 03:54:58 bryanh Exp $
1515
#
1616
#-------------------------------------------------------------------------
1717

@@ -42,22 +42,22 @@ do
4242
shift;
4343
done
4444

45-
if [-z"$AUTHSYS" ];then
46-
AUTHOPT =""
45+
if [-z"$AUTHSYS" ];then
46+
AUTHOPT=""
4747
else
48-
AUTHOPT ="-a$AUTHSYS"
48+
AUTHOPT="-a$AUTHSYS"
4949
fi
5050

51-
if [-z"$PGHOST" ];then
52-
PGHOSTOPT =""
51+
if [-z"$PGHOST" ];then
52+
PGHOSTOPT=""
5353
else
54-
PGHOSTOPT ="-h$PGHOST"
54+
PGHOSTOPT="-h$PGHOST"
5555
fi
5656

57-
if [-z"$PGPORT" ];then
58-
PGPORTOPT =""
57+
if [-z"$PGPORT" ];then
58+
PGPORTOPT=""
5959
else
60-
PGPORTOPT ="-p$PGPORT"
60+
PGPORTOPT="-p$PGPORT"
6161
fi
6262

6363
psql -tq$AUTHOPT$PGHOSTOPT$PGPORTOPT -c"drop database$dbname" template1

‎src/bin/destroyuser/destroyuser.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99
#
1010
# IDENTIFICATION
11-
# $Header: /cvsroot/pgsql/src/bin/destroyuser/Attic/destroyuser.sh,v 1.5 1996/11/14 10:25:19 bryanh Exp $
11+
# $Header: /cvsroot/pgsql/src/bin/destroyuser/Attic/destroyuser.sh,v 1.6 1996/11/17 03:55:07 bryanh Exp $
1212
#
1313
# Note - this should NOT be setuid.
1414
#
@@ -39,25 +39,25 @@ do
3939
shift;
4040
done
4141

42-
if [-z"$AUTHSYS" ];then
43-
AUTHOPT =""
42+
if [-z"$AUTHSYS" ];then
43+
AUTHOPT=""
4444
else
45-
AUTHOPT ="-a$AUTHSYS"
45+
AUTHOPT="-a$AUTHSYS"
4646
fi
4747

48-
if [-z"$PGHOST" ];then
49-
PGHOSTOPT =""
48+
if [-z"$PGHOST" ];then
49+
PGHOSTOPT=""
5050
else
51-
PGHOSTOPT ="-h$PGHOST"
51+
PGHOSTOPT="-h$PGHOST"
5252
fi
5353

54-
if [-z"$PGPORT" ];then
55-
PGPORTOPT =""
54+
if [-z"$PGPORT" ];then
55+
PGPORTOPT=""
5656
else
57-
PGPORTOPT ="-p$PGPORT"
57+
PGPORTOPT="-p$PGPORT"
5858
fi
5959

60-
PARGS="-tq$AUTHOPT$PGHOSTOPT$PGPORTOPT
60+
PARGS="-tq$AUTHOPT$PGHOSTOPT$PGPORTOPT"
6161

6262
#
6363
# generate the first part of the actual monitor command

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp