Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ActEV
diva_evaluation_cli
Commits
425deeaa
Commit
425deeaa
authored
May 27, 2021
by
Baptiste CHOCOT
Browse files
Replace [ ] by bash [[ ]] brackets
parent
bd80274b
Pipeline
#230572
passed with stage
in 1 minute and 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
diva_evaluation_cli/bin/private_src/implementation/get_system/get/get_archive.sh
View file @
425deeaa
...
...
@@ -8,7 +8,7 @@ token=$5
install_cli
=
$6
name
=
$7
if
[
$location
!=
"None"
]
;
then
if
[
[
$location
!=
"None"
]
]
;
then
cd
$location
fi
...
...
@@ -18,13 +18,13 @@ mkdir "./$archive_dir"
cd
"./
$archive_dir
"
options
=
"-O -J -L"
if
[
$token
!=
"None"
]
;
then
if
[
[
$token
!=
"None"
]
]
;
then
curl
"Authorization: Bearer
$token
"
$options
$url
else
if
[
$user
!=
"None"
]
&&
[
$password
!=
"None"
]
;
then
if
[
[
$user
!=
"None"
]
]
&&
[
[
$password
!=
"None"
]
]
;
then
curl
$options
-u
$user
:
$password
$url
else
if
[
$user
!=
"None"
]
&&
[
$password
==
"None"
]
;
then
if
[
[
$user
!=
"None"
]
]
&&
[
[
$password
==
"None"
]
]
;
then
curl
$options
-u
$user
$url
else
curl
$options
$url
...
...
@@ -39,7 +39,7 @@ rm $archive
package
=
`
ls
`
if
[
$name
!=
""
]
&&
[
$name
!=
$package
]
;
then
if
[
[
$name
!=
""
]
]
&&
[
[
$name
!=
$package
]
]
;
then
mv
$package
$name
fi
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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