Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
react-admin-cubicweb
Manage
Activity
Members
Labels
Plan
Issues
19
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cubicweb
react-admin-cubicweb
Merge requests
!59
feat: improve `update-deps.sh`
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
feat: improve `update-deps.sh`
topic/default/update-deps-improve
into
branch/default
Overview
0
Commits
1
Pipelines
3
Changes
1
Merged
Nicola Spanti
requested to merge
topic/default/update-deps-improve
into
branch/default
2 years ago
Overview
0
Commits
1
Pipelines
3
Changes
1
Expand
Use
sh
of
bash
, because it is more common (
bash
may not be installed in favor of
zsh
or
fish
)
Better management of number of arguments
Redirect error messages to
stderr
Manage the empty argument case
Protect use of the argument with double quotes
0
0
Merge request reports
Compare
branch/default
version 1
f9289c27
2 years ago
branch/default (base)
and
latest version
latest version
6a04d2ce
1 commit,
2 years ago
version 1
f9289c27
1 commit,
2 years ago
1 file
+
18
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
update-deps.sh
+
18
−
9
Options
#!/bin/
ba
sh
#!/bin/sh
# Updates @cubicweb/ra-cubicweb and demo dependencies for the specified package and version
# Updates @cubicweb/ra-cubicweb and demo dependencies
# for the specified package and version
if
[
"$#"
-ne
1
]
;
then
echo
"Please specify a package name"
if
[
"$#"
-eq
0
]
;
then
>
&2
echo
'Please specify a package name as argument'
exit
1
fi
if
[
"$#"
-gt
1
]
;
then
>
&2
echo
'Please specify only one argument'
exit
1
fi
package
=
$1
if
[
`
echo
"
$package
"
|
wc
--chars
`
-eq
1
]
;
then
>
&2
echo
'An empty string can not be a package name'
exit
1
fi
echo
"Installing
${
package
}
"
echo
"Installing "
${
package
}
cd
packages/ra-cubicweb
&&
yarn add
${
package
}
-D
--exact
&&
yarn add
${
package
}
-P
--exact
cd
../demo
&&
yarn add
${
package
}
--exact
\ No newline at end of file
cd
packages/ra-cubicweb
&&
yarn add
"
${
package
}
"
-D
--exact
\
&&
yarn add
"
${
package
}
"
-P
--exact
cd
../demo
&&
yarn add
"
${
package
}
"
--exact
Loading