Commit 425deeaa authored by Baptiste CHOCOT's avatar Baptiste CHOCOT
Browse files

Replace [ ] by bash [[ ]] brackets

parent bd80274b
Pipeline #230572 passed with stage
in 1 minute and 46 seconds
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment