-
Notifications
You must be signed in to change notification settings - Fork 22
LPD-67607 Add exposed function for listing releases #159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
1558340 to
69f0bb0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@anthony-chu we will also need to fix the lecd function in the shell-source.sh file, since an extra argument is now required.
scripts/cli/lec.sh
Outdated
| local closest_resource | ||
| local resource="${1}" | ||
|
|
||
| if [[ ${resource} == "" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 things here:
- Variable expansion should generally be quoted to avoid word splitting:
if [[ "${resource}" == "" ]]; then- Using
-zis more concise than comparing to an empty string:
if [[ -z "${resource}" ]]; then
scripts/cli/lec.sh
Outdated
| fi | ||
| fi | ||
|
|
||
| _print_step "Listing all ${resource//_/ }" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this change, lecd will now show the output of _print_step as a selectable option. Let's just leave this off so that anything listed here can be used for scripting if desired.
0618959 to
cb99dcb
Compare
https://liferay.atlassian.net/browse/LPD-67607