Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pcy
sspt
Commits
92615c41
Commit
92615c41
authored
Dec 13, 2017
by
pcy
Browse files
fix derps
parent
29e841f7
Changes
1
Show whitespace changes
Inline
Side-by-side
local/libexec/sspt/sspt-update
View file @
92615c41
...
@@ -26,9 +26,7 @@ update_package() {
...
@@ -26,9 +26,7 @@ update_package() {
local
AFTER
=
"
$(
exec_subcommand pkgcmd version
"
$PKG
"
)
"
local
AFTER
=
"
$(
exec_subcommand pkgcmd version
"
$PKG
"
)
"
if
[
"
$BEFORE
"
!=
"
$AFTER
"
]
;
then
if
[
"
$BEFORE
"
!=
"
$AFTER
"
]
;
then
exec_subcommand src-db reg
"
$PKG
"
"
$AFTER
"
||
return
2
exec_subcommand src-db reg
"
$PKG
"
"
$AFTER
"
&&
return
1
||
return
2
return
1
fi
fi
return
0
return
0
...
@@ -72,13 +70,13 @@ update_selection() {
...
@@ -72,13 +70,13 @@ update_selection() {
else
else
ERRORS
=
"
$ERRORS
,
$PKG
"
ERRORS
=
"
$ERRORS
,
$PKG
"
fi
fi
elif
[
"
$
E
RTV
"
=
"1"
]
;
then
elif
[
"
$R
E
TV
"
=
"1"
]
;
then
echo
"
$PKG
"
>>
/tmp/upgrade_list
echo
"
$PKG
"
>>
/tmp/upgrade_list
fi
fi
done
done
if
!
[
-z
"
$ERRORS
"
]
;
then
if
!
[
-z
"
$ERRORS
"
]
;
then
(>
&2
echo
"Failed to update the following packages:
$ERRORS
\n
"
\
(>
&2
echo
-e
"Failed to update the following packages:
$ERRORS
\n
"
\
"Press any key to continue."
)
"Press any key to continue."
)
local
FOOBAR
=
""
local
FOOBAR
=
""
...
...
Write
Preview
Markdown
is supported
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