Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caucase
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
caucase
Commits
dc024644
Commit
dc024644
authored
Feb 12, 2021
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell/cahcase.sh: Move cas_found initialisation closer to usage.
Makes the code easier to read.
parent
87cae25c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
shell/caucase.sh
shell/caucase.sh
+2
-1
No files found.
shell/caucase.sh
View file @
dc024644
...
@@ -1183,7 +1183,7 @@ EOF
...
@@ -1183,7 +1183,7 @@ EOF
# shellcheck disable=SC2039
# shellcheck disable=SC2039
local
netloc
=
"
$1
"
\
local
netloc
=
"
$1
"
\
cas_file
\
cas_file
\
cas_found
=
0
\
cas_found
\
csr_id
\
csr_id
\
status
\
status
\
tmp_dir
\
tmp_dir
\
...
@@ -1296,6 +1296,7 @@ EOF
...
@@ -1296,6 +1296,7 @@ EOF
if
[
!
-d
cas_crt
]
;
then
if
[
!
-d
cas_crt
]
;
then
_fail
'cas_crt not created\n'
_fail
'cas_crt not created\n'
fi
fi
cas_found
=
0
for
cas_file
in
cas_crt/
*
;
do
for
cas_file
in
cas_crt/
*
;
do
if
[
-r
"
$cas_file
"
]
&&
[
!
-h
"
$cas_file
"
]
;
then
if
[
-r
"
$cas_file
"
]
&&
[
!
-h
"
$cas_file
"
]
;
then
if
[
"
$cas_found
"
-eq
1
]
;
then
if
[
"
$cas_found
"
-eq
1
]
;
then
...
...
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