Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
4cfd34f6
Commit
4cfd34f6
authored
Aug 07, 2017
by
Leigh B Stoller
Browse files
Minor fixes to previous revision.
parent
ff18c71c
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/announce.in
View file @
4cfd34f6
...
...
@@ -222,7 +222,8 @@ if ($add_mode || $update_mode) {
$text
=
join
('
',
@ARGV
);
}
if
(
!
$list_mode
&&
!
$add_mode
&&
!
$purge_mode
&&
scalar
(
@ARGV
)
>
0
)
{
if
(
!
$list_mode
&&
!
$add_mode
&&
!
$update_mode
&&
!
$purge_mode
&&
scalar
(
@ARGV
)
>
0
)
{
usage
();
}
...
...
@@ -273,7 +274,7 @@ if ($add_mode) {
# Update existing announcement.
#
my
$query
=
"
update apt_announcements set
";
$query
.=
"
,
text=
"
.
DBQuoteSpecial
(
$text
);
$query
.=
"
text=
"
.
DBQuoteSpecial
(
$text
);
if
(
defined
(
$button
)
&&
defined
(
$url
))
{
$query
.=
"
, link_label=
"
.
DBQuoteSpecial
(
$button
);
$query
.=
"
, link_url=
"
.
DBQuoteSpecial
(
$url
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment