GDGToulouse / devfest-embedded-devices-monorepo

The monorepo to manage embedded devices we put in each room during the DevFest Toulouse, the devices are here to assist us during the event.
MIT License
9 stars 3 forks source link

./couchdb-dump.sh: line 154: [: too many arguments #59

Closed hadrien-toma closed 4 years ago

hadrien-toma commented 4 years ago

Bug report

Description

Can not reach to do a backup with couchdb-dump.

To Reproduce

Steps to reproduce the behavior:

yarn run dbs
tools/couchdb/backup/index.bash

Expected behavior

I would like to have no error when attempting a backup.

Environment

> yarn run print-envs
node --version
v13.14.0
npm --version
6.14.1
yarn --version
1.21.1
yarn run ng --version
$ ng --version

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 9.0.4
Node: 13.14.0
OS: linux x64

Angular: 9.0.4
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.900.4
@angular-devkit/build-angular      0.900.1
@angular-devkit/build-ng-packagr   0.900.4
@angular-devkit/build-optimizer    0.900.1
@angular-devkit/build-webpack      0.900.1
@angular-devkit/core               9.0.4
@angular-devkit/schematics         9.0.4
@angular-devkit/schematics-cli     0.13.8
@angular/cdk                       9.1.0
@angular/material                  9.1.0
@ngtools/webpack                   9.0.1
@schematics/angular                9.0.4
@schematics/schematics             0.13.8
@schematics/update                 0.900.4
ng-packagr                         9.0.2
rxjs                               6.5.4
typescript                         3.7.5
webpack                            4.41.2

python --version
Python 3.7.3
pip --version
pip 19.1.1 from /home/hadrien_toma_1/anaconda3/lib/python3.7/site-packages/pip (python 3.7)
Done in 2.52s.
Arcahub commented 4 years ago

Fixed. Problem came from the last \n in : printf -v currentDate '%(%Y%m%d%H%M%S)T\n' -1 line 5

hadrien-toma commented 4 years ago

Nice @Arcahub, thank you! No need to submit a pull request, I will change it in my branch directly.